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
版本4.6 当SugarTable的名称和实体类的名臣不一致的时候,使用Updateable(XX).As(XX)是替换表名没有生效
The text was updated successfully, but these errors were encountered:
加上这句话就可以了Db.MappingTables.Add(typeof(T).Name, tablename);
Sorry, something went wrong.
我们这边当使用SugarTable在实体上面标注后,不用写As也能更新 [SugarTable("Address")] public class AddressEntity : ModelContext
[SugarTable("Address")] public class AddressEntity : ModelContext
我这儿是需要替换表名的,例如[SugarTable("Address")] public class AddressEntity Updateable(AddressEntity).As(“AddressTable2”) 这时候是更新不了的
已修改 节后上班前会同步到GITHUB
No branches or pull requests
版本4.6
当SugarTable的名称和实体类的名臣不一致的时候,使用Updateable(XX).As(XX)是替换表名没有生效
The text was updated successfully, but these errors were encountered: