mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-18 22:19:33 +08:00
VAT code
This commit is contained in:
parent
3ed366c889
commit
848b289c9d
@ -527,19 +527,9 @@ namespace SqlSugar
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var name = GetType(propertyType.Name);
|
var name = GetType(propertyType.Name);
|
||||||
if (name == "Boolean")
|
|
||||||
{
|
|
||||||
result.DataType = "tinyint";
|
|
||||||
result.Length = 1;
|
|
||||||
result.Scale = 0;
|
|
||||||
result.DecimalDigits = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual bool IsNoSamgeType(EntityColumnInfo ec, DbColumnInfo dc)
|
protected virtual bool IsNoSamgeType(EntityColumnInfo ec, DbColumnInfo dc)
|
||||||
{
|
{
|
||||||
|
@ -527,19 +527,9 @@ namespace SqlSugar
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
var name = GetType(propertyType.Name);
|
var name = GetType(propertyType.Name);
|
||||||
if (name == "Boolean")
|
|
||||||
{
|
|
||||||
result.DataType = "tinyint";
|
|
||||||
result.Length = 1;
|
|
||||||
result.Scale = 0;
|
|
||||||
result.DecimalDigits = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
result.DataType = this.Context.Ado.DbBind.GetDbTypeName(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
protected virtual bool IsNoSamgeType(EntityColumnInfo ec, DbColumnInfo dc)
|
protected virtual bool IsNoSamgeType(EntityColumnInfo ec, DbColumnInfo dc)
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.3.23-preview03</version>
|
<version>5.1.3.23-preview07</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Loading…
Reference in New Issue
Block a user