DateTimeOffset BUG

This commit is contained in:
sunkaixuan 2018-11-11 20:21:08 +08:00
parent 6098c69040
commit 83a44b31bb
2 changed files with 5 additions and 0 deletions

View File

@ -91,6 +91,10 @@ namespace SqlSugar
{
this.DbType = System.Data.DbType.String;
}
else if (type == UtilConstants.DateTimeOffsetType)
{
this.DbType = System.Data.DbType.DateTimeOffset;
}
}
public SugarParameter(string name, object value, bool isOutput)

View File

@ -27,6 +27,7 @@ namespace SqlSugar
internal static Type DecType = typeof(decimal);
internal static Type StringType = typeof(string);
internal static Type DateType = typeof(DateTime);
internal static Type DateTimeOffsetType = typeof(DateTimeOffset);
internal static Type ByteArrayType = typeof(byte[]);
internal static Type ModelType= typeof(ModelContext);
internal static Type DynamicType = typeof(ExpandoObject);