😎修复临时表大小写问题

This commit is contained in:
zuohuaijun 2024-11-08 10:24:12 +08:00
parent 49ec5d898e
commit 9b6bcb83c0

View File

@ -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);