Browse Source

Update CodeFirst pgsql

pull/19/head
sunkaixuan 3 years ago
parent
commit
df30a3c6e2
  1. 1
      Src/Asp.Net/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs

1
Src/Asp.Net/SqlSugar/Realization/PostgreSQL/CodeFirst/PostgreSQLCodeFirst.cs

@ -20,6 +20,7 @@ namespace SqlSugar
columns.Add(dbColumnInfo);
}
}
columns = columns.OrderBy(it => it.IsPrimarykey ? 0 : 1).ToList();
this.Context.DbMaintenance.CreateTable(tableName, columns,true);
}
protected override DbColumnInfo EntityColumnToDbColumn(EntityInfo entityInfo, string tableName, EntityColumnInfo item)

Loading…
Cancel
Save