update debug

This commit is contained in:
28810
2019-12-29 17:21:32 +08:00
parent a791febade
commit 647c93f6dd
4 changed files with 9 additions and 139 deletions

View File

@ -137,7 +137,7 @@ namespace FreeSql.DataAnnotations
}
public ColumnFluent Property(string proto)
{
if (_properties.TryGetValue(proto, out var tryProto)) throw new KeyNotFoundException($"找不到属性名 {proto}");
if (_properties.TryGetValue(proto, out var tryProto) == false) throw new KeyNotFoundException($"找不到属性名 {proto}");
var col = _table._columns.GetOrAdd(tryProto.Name, name => new ColumnAttribute { Name = proto });
return new ColumnFluent(col);
}