0
|
1 using System;
|
|
2 using System.Data.SqlTypes;
|
|
3
|
|
4 namespace BLToolkit.Mapping
|
|
5 {
|
|
6 [CLSCompliant(false)]
|
|
7 public interface IMapDataDestination
|
|
8 {
|
|
9 Type GetFieldType (int index);
|
|
10 int GetOrdinal (string name);
|
|
11 void SetValue (object o, int index, object value);
|
|
12 void SetValue (object o, string name, object value);
|
|
13
|
|
14 void SetNull (object o, int index);
|
|
15
|
|
16 bool SupportsTypedValues(int index);
|
|
17
|
|
18 // Simple type setters.
|
|
19 //
|
|
20 [CLSCompliant(false)]
|
|
21 void SetSByte (object o, int index, SByte value);
|
|
22 void SetInt16 (object o, int index, Int16 value);
|
|
23 void SetInt32 (object o, int index, Int32 value);
|
|
24 void SetInt64 (object o, int index, Int64 value);
|
|
25
|
|
26 void SetByte (object o, int index, Byte value);
|
|
27 [CLSCompliant(false)]
|
|
28 void SetUInt16 (object o, int index, UInt16 value);
|
|
29 [CLSCompliant(false)]
|
|
30 void SetUInt32 (object o, int index, UInt32 value);
|
|
31 [CLSCompliant(false)]
|
|
32 void SetUInt64 (object o, int index, UInt64 value);
|
|
33
|
|
34 void SetBoolean (object o, int index, Boolean value);
|
|
35 void SetChar (object o, int index, Char value);
|
|
36 void SetSingle (object o, int index, Single value);
|
|
37 void SetDouble (object o, int index, Double value);
|
|
38 void SetDecimal (object o, int index, Decimal value);
|
|
39 void SetGuid (object o, int index, Guid value);
|
|
40 void SetDateTime (object o, int index, DateTime value);
|
|
41 void SetDateTimeOffset(object o, int index, DateTimeOffset value);
|
|
42
|
|
43 // Simple type setters.
|
|
44 //
|
|
45 [CLSCompliant(false)]
|
|
46 void SetNullableSByte (object o, int index, SByte? value);
|
|
47 void SetNullableInt16 (object o, int index, Int16? value);
|
|
48 void SetNullableInt32 (object o, int index, Int32? value);
|
|
49 void SetNullableInt64 (object o, int index, Int64? value);
|
|
50
|
|
51 void SetNullableByte (object o, int index, Byte? value);
|
|
52 [CLSCompliant(false)]
|
|
53 void SetNullableUInt16 (object o, int index, UInt16? value);
|
|
54 [CLSCompliant(false)]
|
|
55 void SetNullableUInt32 (object o, int index, UInt32? value);
|
|
56 [CLSCompliant(false)]
|
|
57 void SetNullableUInt64 (object o, int index, UInt64? value);
|
|
58
|
|
59 void SetNullableBoolean (object o, int index, Boolean? value);
|
|
60 void SetNullableChar (object o, int index, Char? value);
|
|
61 void SetNullableSingle (object o, int index, Single? value);
|
|
62 void SetNullableDouble (object o, int index, Double? value);
|
|
63 void SetNullableDecimal (object o, int index, Decimal? value);
|
|
64 void SetNullableGuid (object o, int index, Guid? value);
|
|
65 void SetNullableDateTime (object o, int index, DateTime? value);
|
|
66 void SetNullableDateTimeOffset(object o, int index, DateTimeOffset? value);
|
|
67
|
|
68 #if !SILVERLIGHT
|
|
69
|
|
70 // SQL type setters.
|
|
71 //
|
|
72 void SetSqlByte (object o, int index, SqlByte value);
|
|
73 void SetSqlInt16 (object o, int index, SqlInt16 value);
|
|
74 void SetSqlInt32 (object o, int index, SqlInt32 value);
|
|
75 void SetSqlInt64 (object o, int index, SqlInt64 value);
|
|
76 void SetSqlSingle (object o, int index, SqlSingle value);
|
|
77 void SetSqlBoolean (object o, int index, SqlBoolean value);
|
|
78 void SetSqlDouble (object o, int index, SqlDouble value);
|
|
79 void SetSqlDateTime(object o, int index, SqlDateTime value);
|
|
80 void SetSqlDecimal (object o, int index, SqlDecimal value);
|
|
81 void SetSqlMoney (object o, int index, SqlMoney value);
|
|
82 void SetSqlGuid (object o, int index, SqlGuid value);
|
|
83 void SetSqlString (object o, int index, SqlString value);
|
|
84
|
|
85 #endif
|
|
86 }
|
|
87 }
|