Remove Oracle check

This commit is contained in:
sunkaixuan 2020-11-10 23:21:40 +08:00
parent d0c0729aaa
commit 94119e39a2
2 changed files with 6 additions and 1 deletions

View File

@ -32,6 +32,8 @@ namespace OrmTest.Test
Db.Insertable(new Order() { Name = "A", Price = 1, CustomId = 1, CreateTime = DateTime.Now.AddDays(-2) }).ExecuteCommand();
var list= Db.Queryable<Order>().Where(it =>Convert.ToDecimal( 1.01) ==Convert.ToDecimal( 1.01)).ToList(); ;
var list2 = Db.Queryable<Order>().Where(it =>it.CreateTime> SqlFunc.DateAdd(SqlFunc.GetDate(),-3)).ToList(); ;
var x = Db.Ado.SqlQuery<Order>("select null as price from dual").ToList();
}
}

View File

@ -260,7 +260,10 @@ namespace SqlSugar
method = isNullableType ? getConvertBoolean : getBoolean;
break;
case CSharpDataType.@string:
CheckType(bind.StringThrow, bindProperyTypeName, validPropertyName, propertyName);
if (this.Context.CurrentConnectionConfig.DbType != DbType.Oracle)
{
CheckType(bind.StringThrow, bindProperyTypeName, validPropertyName, propertyName);
}
method = getString;
if (bindProperyTypeName == "guid")
{