mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 04:13:48 +08:00
Synchronization code
This commit is contained in:
parent
8bc0e8be7c
commit
24bde8672f
@ -171,6 +171,12 @@ namespace SqlSugar
|
||||
//var entityPropertyName = this.EntityInfo.Columns.Single(it=>it.PropertyName.EqualCase(primaryField)||it.DbColumnName.EqualCase(primaryField)).PropertyName;
|
||||
var columnInfo = EntityInfo.Columns.Single(t => t.PropertyName.EqualCase(primaryField) || t.DbColumnName.EqualCase(primaryField));
|
||||
var entityValue = columnInfo.PropertyInfo.GetValue(deleteObj, null);
|
||||
if (this.Context.CurrentConnectionConfig?.MoreSettings?.TableEnumIsString != true &&
|
||||
columnInfo.SqlParameterDbType == null &&
|
||||
columnInfo.PropertyInfo.PropertyType.IsEnum())
|
||||
{
|
||||
entityValue = Convert.ToInt64(entityValue);
|
||||
}
|
||||
var tempequals = DeleteBuilder.WhereInEqualTemplate;
|
||||
if (this.Context.CurrentConnectionConfig.MoreSettings != null && this.Context.CurrentConnectionConfig.MoreSettings.DisableNvarchar == true)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user