😎修复临时表大小写问题
This commit is contained in:
parent
49ec5d898e
commit
9b6bcb83c0
@ -426,7 +426,7 @@ public static class RepositoryExtension
|
||||
try
|
||||
{
|
||||
var type = queryable.Context.DynamicBuilder().CreateClass(tableName, new SugarTable())
|
||||
.CreateProperty("ColumnName", typeof(string), new SugarColumn() { IsPrimaryKey = true }) // 主键不要自增
|
||||
.CreateProperty("ColumnName", typeof(string), new SugarColumn() { IsPrimaryKey = true, ColumnName = "columnName" }) // 主键不要自增
|
||||
.BuilderType();
|
||||
// 创建表
|
||||
queryable.Context.CodeFirst.InitTables(type);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user