We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freeSql.Select<Account2>().ToSql(p => p, FieldAliasOptions.AsProperty).Dump(); public class Account2 { [Column("FID")] public int Id { get; set; } [Column("FName")] public string FName1 { get; set; } }
-- 生成的Sql: SELECT a.`FID`, a.`FName` FROM `Account2` a -- 正确的sql SELECT a.`FID` Id, a.`FName` FName1 FROM `Account2` a
数据库版本 Mysql 8.0
安装的Nuget包 v3.2.832
. net 6.0
The text was updated successfully, but these errors were encountered:
dotnetcore#1851 修复 FieldAliasOptions.AsProperty 生成Sql 错误
754a869
Successfully merging a pull request may close this issue.
数据库版本
Mysql 8.0
安装的Nuget包
v3.2.832
. net 6.0
The text was updated successfully, but these errors were encountered: