mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-15 05:13:27 +08:00
Update enum configuration
This commit is contained in:
parent
b9f7614c69
commit
d923ba2269
@ -28,8 +28,9 @@ namespace OrmTest
|
||||
UnitType.a,
|
||||
UnitType.b
|
||||
};
|
||||
var zz = UnitType.b;
|
||||
var x = db.Queryable<Unit00Z1string1>()
|
||||
.Where(it => it.type == UnitType.b)
|
||||
.Where(it => it.type == zz)
|
||||
.Where(it=>it.type2== UnitType.b)
|
||||
.Where(it=> ids.Contains(it.type)).Select(it => new
|
||||
{
|
||||
|
@ -215,6 +215,7 @@ namespace SqlSugar
|
||||
+ Context.ParameterIndex;
|
||||
if (value.ObjToString() != "NULL" && !parameter.ValueIsNull)
|
||||
{
|
||||
value = this.Context.TableEnumIsString == true ? value.ToString() : value;
|
||||
this.Context.Parameters.Add(new SugarParameter(appendValue, value));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user