mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-18 17:48:11 +08:00
DbFirst Bu
This commit is contained in:
@@ -137,6 +137,12 @@ namespace SqlSugar
|
||||
foreach (var tableInfo in this.TableInfoList)
|
||||
{
|
||||
var columns = this.Context.DbMaintenance.GetColumnInfosByTableName(tableInfo.Name);
|
||||
if (this.Context.IgnoreColumns.IsValuable()) {
|
||||
var entityName = this.Context.EntityProvider.GetEntityName(tableInfo.Name);
|
||||
columns = columns.Where(c =>
|
||||
!this.Context.IgnoreColumns.Any(ig => ig.EntityName.Equals(entityName, StringComparison.CurrentCultureIgnoreCase)&&c.DbColumnName==ig.PropertyName)
|
||||
).ToList();
|
||||
}
|
||||
string className = tableInfo.Name;
|
||||
string classText = this.ClassTemplate;
|
||||
string ConstructorText = IsDefaultValue ? this.ConstructorTemplate : null;
|
||||
|
Reference in New Issue
Block a user