Skip to content

Commit 184d11d

Browse files
committed
- fix: ISelect.InsertInto 自动迁移;
1 parent 4c7de1d commit 184d11d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

FreeSql/Internal/CommonProvider/SelectProvider/Select0ProviderReader.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -953,6 +953,7 @@ protected string InternalGetInsertIntoToSql<TTargetEntity>(string tableName, Exp
953953
if (string.IsNullOrEmpty(tableName)) tableName = tb.DbName;
954954
if (_orm.CodeFirst.IsSyncStructureToLower) tableName = tableName.ToLower();
955955
if (_orm.CodeFirst.IsSyncStructureToUpper) tableName = tableName.ToUpper();
956+
if (_orm.CodeFirst.IsAutoSyncStructure) _orm.CodeFirst.SyncStructure(typeof(TTargetEntity), tableName);
956957

957958
var map = new ReadAnonymousTypeInfo();
958959
var field = new StringBuilder();

0 commit comments

Comments
 (0)