Skip to content

在泰语环境中,ExecuteInsertedAsync 翻译Sql Server语句出错 #1910

Open
@KelvinTse2017

Description

@KelvinTse2017

问题描述及重现代码:

微信图片_20241101170438 微信图片_20241101170632
        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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions