Browse Source

Synchronization code

pull/24/MERGE
sunkaixuan 2 years ago
parent
commit
276271eb9a
  1. 1
      Src/Asp.Net/SqlSugar/Enum/ProperyType.cs
  2. 4
      Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs
  3. 1
      Src/Asp.Net/SqlSugar/Utilities/UtilConstants.cs

1
Src/Asp.Net/SqlSugar/Enum/ProperyType.cs

@ -15,6 +15,7 @@ namespace SqlSugar
@double,
@Guid,
@byte,
@sbyte,
@enum,
@short,
@long,

4
Src/Asp.Net/SqlSugar/ExpressionsToSql/Common/SugarParameter.cs

@ -110,6 +110,10 @@ namespace SqlSugar
{
this.DbType = System.Data.DbType.Byte;
}
else if (type == UtilConstants.SByteType)
{
this.DbType = System.Data.DbType.SByte;
}
else if (type == UtilConstants.FloatType)
{
this.DbType = System.Data.DbType.Single;

1
Src/Asp.Net/SqlSugar/Utilities/UtilConstants.cs

@ -24,6 +24,7 @@ namespace SqlSugar
internal static Type BoolType = typeof(bool);
internal static Type BoolTypeNull = typeof(bool?);
internal static Type ByteType = typeof(Byte);
internal static Type SByteType = typeof(sbyte);
internal static Type ObjType = typeof(object);
internal static Type DobType = typeof(double);
internal static Type FloatType = typeof(float);

Loading…
Cancel
Save