mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 12:28:15 +08:00
修复 IsIgnore 过滤字段后,查询的错误;
This commit is contained in:
@ -377,6 +377,8 @@ namespace FreeSql.Internal.CommonProvider {
|
||||
var index = 0;
|
||||
var otherindex = 0;
|
||||
foreach (var prop in props.Values) {
|
||||
if (tb.Table.ColumnsByCsIgnore.ContainsKey(prop.Name)) continue;
|
||||
|
||||
if (tb.Table.ColumnsByCs.TryGetValue(prop.Name, out var col)) { //普通字段
|
||||
if (index > 0) field.Append(", ");
|
||||
var quoteName = _commonUtils.QuoteSqlName(col.Attribute.Name);
|
||||
|
Reference in New Issue
Block a user