Synchronization code

This commit is contained in:
sunkaixuan
2022-10-28 15:12:10 +08:00
parent 6272f30b95
commit 276271eb9a
3 changed files with 6 additions and 0 deletions

View File

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

View File

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

View File

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