😎修复临时表大小写问题
This commit is contained in:
parent
49ec5d898e
commit
9b6bcb83c0
@ -426,7 +426,7 @@ public static class RepositoryExtension
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
var type = queryable.Context.DynamicBuilder().CreateClass(tableName, new SugarTable())
|
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();
|
.BuilderType();
|
||||||
// 创建表
|
// 创建表
|
||||||
queryable.Context.CodeFirst.InitTables(type);
|
queryable.Context.CodeFirst.InitTables(type);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user