File tree Expand file tree Collapse file tree 3 files changed +37
-2
lines changed
src/IBatisNet.DataMapper.Test Expand file tree Collapse file tree 3 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 456
456
<Content Include =" Maps\SQLite3\Enumeration.xml" />
457
457
<Content Include =" Maps\SQLite3\GroupByMapping.xml" />
458
458
<Content Include =" Maps\SQLite3\LineItem.xml" />
459
+ <EmbeddedResource Include =" Maps\SQLite3\Module\Order2.xml" />
459
460
<Content Include =" Maps\SQLite3\NewsPaper.xml" />
460
461
<Content Include =" Maps\SQLite3\Nullable.xml" />
461
462
<Content Include =" Maps\SQLite3\Order.xml" />
592
593
<Content Include =" Scripts\SQLite3\swap-procedure.sql" />
593
594
<Content Include =" Scripts\SQLite3\teardown.sql" />
594
595
<Content Include =" Scripts\SQLite3\user-init.sql" />
595
- <EmbeddedResource Include =" bin\Debug\SqlMap_SQLite3_SQLite3.config" />
596
+ <EmbeddedResource Include =" bin\Debug\SqlMap_SQLite3_SQLite3.config" >
597
+ <SubType >Designer</SubType >
598
+ </EmbeddedResource >
596
599
<None Include =" Scripts\SQLite3\ps_SelectByIdList.sql" />
597
600
<None Include =" bin\Debug\IBatisNet.DataMapper.Test.dll.config" />
598
601
<None Include =" bin\Debug\SqlMap_Access_OleDb.config" />
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+
3
+ <sqlMap namespace =" Order2"
4
+ xmlns=" http://ibatis.apache.org/mapping"
5
+ xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" >
6
+ <resultMaps >
7
+ <resultMap id =" order-with-generic-list-lineitem-module" class =" Order" >
8
+ <result property =" Id" column =" Order_ID" />
9
+ <result property =" Date" column =" Order_Date" nullValue =" 01/01/0001 00:00:00" />
10
+ <result property =" CardExpiry" column =" Order_CardExpiry" />
11
+ <result property =" CardType" column =" Order_CardType" />
12
+ <result property =" CardNumber" column =" Order_CardNumber" />
13
+ <result property =" Street" column =" Order_Street" />
14
+ <result property =" City" column =" Order_City" />
15
+ <result property =" Province" column =" Order_Province" />
16
+ <result property =" PostalCode" column =" Order_PostalCode" />
17
+ <result property =" LineItemsGenericList" column =" Order_ID" select =" GetLineItemsForOrder" />
18
+ </resultMap >
19
+ </resultMaps >
20
+ <statements >
21
+
22
+ <statement id =" GetOrderWithGenericListLineItemViaModule"
23
+ parameterClass =" Integer"
24
+ resultMap =" order-with-generic-list-lineitem-module" >
25
+ select * from Orders where Order_ID = #value#
26
+ </statement >
27
+
28
+ </statements >
29
+ </sqlMap >
Original file line number Diff line number Diff line change @@ -59,6 +59,9 @@ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
59
59
<sqlMap resource =" ../../Maps/SQLite3/Coupons.xml" />
60
60
<sqlMap resource =" ../../Maps/SQLite3/ParentChild1.xml" />
61
61
<sqlMap resource =" ../../Maps/SQLite3/ParentChild2.xml" />
62
-
63
62
</sqlMaps >
63
+
64
+ <sqlMapModules >
65
+ <sqlMapModule resource =" ../../Maps/MSSQL/SqlClient/MapModule.xml" />
66
+ </sqlMapModules >
64
67
</sqlMapConfig >
You can’t perform that action at this time.
0 commit comments