示例#1
0
 private static void InitXml(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Xml;
     info.NetDataType = typeof(string);
 }
示例#2
0
 private static void InitVarBinary(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Binary;
     info.NetDataType = typeof(Byte[]);
     info.SetSize(sizeOrPrecision);
 }
示例#3
0
 private static void InitNVarChar(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.String;
     info.NetDataType = typeof(string);
     info.SetSize(sizeOrPrecision);
 }
示例#4
0
 private static void InitUniqueIdentifier(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Guid;
     info.NetDataType = typeof(Guid);
 }
示例#5
0
 private static void InitTimeStamp(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Binary;
     info.NetDataType = typeof(Byte[]);
     info.Size        = 8;
 }
示例#6
0
 private static void InitTime(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Time;
     info.NetDataType = typeof(TimeSpan);
 }
示例#7
0
 private static void InitTinyInt(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Byte;
     info.NetDataType = typeof(Byte);
 }
示例#8
0
 private static void InitDecimal(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Decimal;
     info.NetDataType = typeof(Decimal);
 }
示例#9
0
 private static void InitObject(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Object;
     info.NetDataType = typeof(Object);
 }
示例#10
0
 private static void InitReal(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Single;
     info.NetDataType = typeof(Single);
 }
示例#11
0
 private static void InitSmallInt(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Int16;
     info.NetDataType = typeof(Int16);
 }
示例#12
0
 private static void InitFloat(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Double;
     info.NetDataType = typeof(Double);
 }
示例#13
0
 private static void InitDateTimeOffset(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.DateTimeOffset;
     info.NetDataType = typeof(DateTimeOffset);
 }
示例#14
0
 private static void InitBit(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Boolean;
     info.NetDataType = typeof(Boolean);
 }
示例#15
0
 private static void InitBinary(DataTypeInfo info, string sizeOrPrecision)
 {
     info.IsFixedSize = true;
     InitVarBinary(info, sizeOrPrecision);
 }
示例#16
0
 private static void InitBigInt(DataTypeInfo info, string sizeOrPrecision)
 {
     info.DbDataType  = DbType.Int64;
     info.NetDataType = typeof(Int64);
 }