Browse Source

Update ValidateVersion

pull/31/head
sunkaixuan 2 years ago
parent
commit
ef9c8b9ff9
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs

2
Src/Asp.Net/SqlSugar/Abstract/UpdateProvider/UpdateableHelper.cs

@ -395,7 +395,7 @@ namespace SqlSugar
List<IConditionalModel> conModels = new List<IConditionalModel>(); List<IConditionalModel> conModels = new List<IConditionalModel>();
foreach (var item in pks) foreach (var item in pks)
{ {
conModels.Add(new ConditionalModel() { FieldName = item.DbColumnName, ConditionalType = ConditionalType.Equal, FieldValue = item.Value.ObjToString() }); conModels.Add(new ConditionalModel() {CSharpTypeName=item.PropertyType.Name, FieldName = item.DbColumnName, ConditionalType = ConditionalType.Equal, FieldValue = item.Value.ObjToString() });
} }
var dbInfo = this.Context.Queryable<T>().Where(conModels).First(); var dbInfo = this.Context.Queryable<T>().Where(conModels).First();
if (dbInfo != null) if (dbInfo != null)

Loading…
Cancel
Save