You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same problem for PostrgeSQL, i fix this by reimplementing ParseField method in IFieldParser:
publicclassPostgreSQLFieldParser:DefaultFieldParser{privatereadonlyISqlGenerationHelper_sqlGenerationHelper;publicPostgreSQLFieldParser(ICurrentDbContextcurrentDbContext,ISqlGenerationHelpersqlGenerationHelper,IDbSetFinderdbSetFinder):base(currentDbContext, sqlGenerationHelper, dbSetFinder){_sqlGenerationHelper=sqlGenerationHelper;}publicoverridestringParseField(SqlFieldInfofield){// just column name, without table namereturn _sqlGenerationHelper.DelimitIdentifier(field.Column);}}
And after using this implementation instead DefaultFieldParser:
使用
Pomelo.EntityFrameworkCore.Lolita
无法生成正确的sql更新语句:通过
GenerateBulkUpdateSql
方法查看生成的sql语句如下:The text was updated successfully, but these errors were encountered: