mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-19 01:58:13 +08:00
TimeSpan BUG
This commit is contained in:
@@ -25,14 +25,14 @@ namespace SqlSugar
|
||||
this.ParameterName = name;
|
||||
SettingDataType(type);
|
||||
}
|
||||
public SugarParameter(string name, object value, Type type,ParameterDirection direction)
|
||||
public SugarParameter(string name, object value, Type type, ParameterDirection direction)
|
||||
{
|
||||
this.Value = value;
|
||||
this.ParameterName = name;
|
||||
this.Direction = direction;
|
||||
SettingDataType(type);
|
||||
}
|
||||
public SugarParameter(string name, object value, Type type, ParameterDirection direction,int size)
|
||||
public SugarParameter(string name, object value, Type type, ParameterDirection direction, int size)
|
||||
{
|
||||
this.Value = value;
|
||||
this.ParameterName = name;
|
||||
@@ -95,6 +95,10 @@ namespace SqlSugar
|
||||
{
|
||||
this.DbType = System.Data.DbType.DateTimeOffset;
|
||||
}
|
||||
else if (type == UtilConstants.TimeSpanType)
|
||||
{
|
||||
this.Value = this.Value.ToString();
|
||||
}
|
||||
|
||||
}
|
||||
public SugarParameter(string name, object value, bool isOutput)
|
||||
|
@@ -29,6 +29,7 @@ namespace SqlSugar
|
||||
internal static Type StringType = typeof(string);
|
||||
internal static Type DateType = typeof(DateTime);
|
||||
internal static Type DateTimeOffsetType = typeof(DateTimeOffset);
|
||||
internal static Type TimeSpanType = typeof(TimeSpan);
|
||||
internal static Type ByteArrayType = typeof(byte[]);
|
||||
internal static Type ModelType= typeof(ModelContext);
|
||||
internal static Type DynamicType = typeof(ExpandoObject);
|
||||
|
Reference in New Issue
Block a user