Thread.CurrentThread.CurrentCulture = new CultureInfo("th-TH");
var Datas = await Svc.Fsql.Insert(Adds)
.WithTransaction(Tran)
.ExecuteInsertedAsync();
数据库版本
sql server 2022
安装的Nuget包
FreeSql.Provider.SqlServer.dll
3.2.815
.net framework/. net core? 及具体版本
.net 6.0
sql 语句
INSERT INTO [CT_Sys_OwnerMenuPermission]([Id], [CreatedBy], [CreatedUtcTime], [OwnerType], [OwnerId], [MenuId], [MenuEventCode]) V OUTPUT INSERTED.[Id] as [Id], INSERTED.[CreatedBy] as [CreatedBy], INSERTED.[CreatedUtcTime] as [CreatedUtcTime], INSERTED.[OwnerType] as [OwnerType], INSERTED.[OwnerId] as [OwnerId], INSERTED.[MenuId] as [MenuId], INSERTED.[MenuEventCode] as [MenuEventCode]ALUES(@Id_0, @CreatedBy_0, xxx
问题描述及重现代码:
数据库版本
sql server 2022
安装的Nuget包
FreeSql.Provider.SqlServer.dll 3.2.815
.net framework/. net core? 及具体版本
.net 6.0
sql 语句
INSERT INTO [CT_Sys_OwnerMenuPermission]([Id], [CreatedBy], [CreatedUtcTime], [OwnerType], [OwnerId], [MenuId], [MenuEventCode]) V OUTPUT INSERTED.[Id] as [Id], INSERTED.[CreatedBy] as [CreatedBy], INSERTED.[CreatedUtcTime] as [CreatedUtcTime], INSERTED.[OwnerType] as [OwnerType], INSERTED.[OwnerId] as [OwnerId], INSERTED.[MenuId] as [MenuId], INSERTED.[MenuEventCode] as [MenuEventCode]ALUES(@Id_0, @CreatedBy_0, xxx