private static void InitXml(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Xml; info.NetDataType = typeof(string); }
private static void InitVarBinary(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Binary; info.NetDataType = typeof(Byte[]); info.SetSize(sizeOrPrecision); }
private static void InitNVarChar(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.String; info.NetDataType = typeof(string); info.SetSize(sizeOrPrecision); }
private static void InitUniqueIdentifier(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Guid; info.NetDataType = typeof(Guid); }
private static void InitTimeStamp(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Binary; info.NetDataType = typeof(Byte[]); info.Size = 8; }
private static void InitTime(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Time; info.NetDataType = typeof(TimeSpan); }
private static void InitTinyInt(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Byte; info.NetDataType = typeof(Byte); }
private static void InitDecimal(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Decimal; info.NetDataType = typeof(Decimal); }
private static void InitObject(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Object; info.NetDataType = typeof(Object); }
private static void InitReal(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Single; info.NetDataType = typeof(Single); }
private static void InitSmallInt(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Int16; info.NetDataType = typeof(Int16); }
private static void InitFloat(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Double; info.NetDataType = typeof(Double); }
private static void InitDateTimeOffset(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.DateTimeOffset; info.NetDataType = typeof(DateTimeOffset); }
private static void InitBit(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Boolean; info.NetDataType = typeof(Boolean); }
private static void InitBinary(DataTypeInfo info, string sizeOrPrecision) { info.IsFixedSize = true; InitVarBinary(info, sizeOrPrecision); }
private static void InitBigInt(DataTypeInfo info, string sizeOrPrecision) { info.DbDataType = DbType.Int64; info.NetDataType = typeof(Int64); }