comparison Source/Mapping/IMapDataSource.cs @ 0:f990fcb411a9

Копия текущей версии из github
author cin
date Thu, 27 Mar 2014 21:46:09 +0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f990fcb411a9
1 using System;
2
3 #if !SILVERLIGHT
4 using System.Data.SqlTypes;
5 #endif
6
7 namespace BLToolkit.Mapping
8 {
9 [CLSCompliant(false)]
10 public interface IMapDataSource
11 {
12 int Count { get; }
13
14 Type GetFieldType (int index);
15 string GetName (int index);
16 int GetOrdinal (string name);
17 object GetValue (object o, int index);
18 object GetValue (object o, string name);
19
20 bool IsNull (object o, int index);
21
22 bool SupportsTypedValues(int index);
23
24 // Simple type getters.
25 //
26 [CLSCompliant(false)]
27 SByte GetSByte (object o, int index);
28 Int16 GetInt16 (object o, int index);
29 Int32 GetInt32 (object o, int index);
30 Int64 GetInt64 (object o, int index);
31
32 Byte GetByte (object o, int index);
33 [CLSCompliant(false)]
34 UInt16 GetUInt16 (object o, int index);
35 [CLSCompliant(false)]
36 UInt32 GetUInt32 (object o, int index);
37 [CLSCompliant(false)]
38 UInt64 GetUInt64 (object o, int index);
39
40 Boolean GetBoolean (object o, int index);
41 Char GetChar (object o, int index);
42 Single GetSingle (object o, int index);
43 Double GetDouble (object o, int index);
44 Decimal GetDecimal (object o, int index);
45 DateTime GetDateTime (object o, int index);
46 DateTimeOffset GetDateTimeOffset(object o, int index);
47 Guid GetGuid (object o, int index);
48
49 // Simple type getters.
50 //
51 [CLSCompliant(false)]
52 SByte? GetNullableSByte (object o, int index);
53 Int16? GetNullableInt16 (object o, int index);
54 Int32? GetNullableInt32 (object o, int index);
55 Int64? GetNullableInt64 (object o, int index);
56
57 Byte? GetNullableByte (object o, int index);
58 [CLSCompliant(false)]
59 UInt16? GetNullableUInt16 (object o, int index);
60 [CLSCompliant(false)]
61 UInt32? GetNullableUInt32 (object o, int index);
62 [CLSCompliant(false)]
63 UInt64? GetNullableUInt64 (object o, int index);
64
65 Boolean? GetNullableBoolean (object o, int index);
66 Char? GetNullableChar (object o, int index);
67 Single? GetNullableSingle (object o, int index);
68 Double? GetNullableDouble (object o, int index);
69 Decimal? GetNullableDecimal (object o, int index);
70 DateTime? GetNullableDateTime(object o, int index);
71 DateTimeOffset? GetNullableDateTimeOffset(object o, int index);
72 Guid? GetNullableGuid (object o, int index);
73
74 #if !SILVERLIGHT
75
76 // SQL type getters.
77 //
78 SqlByte GetSqlByte (object o, int index);
79 SqlInt16 GetSqlInt16 (object o, int index);
80 SqlInt32 GetSqlInt32 (object o, int index);
81 SqlInt64 GetSqlInt64 (object o, int index);
82 SqlSingle GetSqlSingle (object o, int index);
83 SqlBoolean GetSqlBoolean (object o, int index);
84 SqlDouble GetSqlDouble (object o, int index);
85 SqlDateTime GetSqlDateTime (object o, int index);
86 SqlDecimal GetSqlDecimal (object o, int index);
87 SqlMoney GetSqlMoney (object o, int index);
88 SqlGuid GetSqlGuid (object o, int index);
89 SqlString GetSqlString (object o, int index);
90
91 #endif
92 }
93 }