Skip to content
New issue

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

Updateable(updateobj).As(tablename) 没有生效 #75

Closed
Rabbit021 opened this issue Jul 10, 2018 · 4 comments
Closed

Updateable(updateobj).As(tablename) 没有生效 #75

Rabbit021 opened this issue Jul 10, 2018 · 4 comments

Comments

@Rabbit021
Copy link

版本4.6
当SugarTable的名称和实体类的名臣不一致的时候,使用Updateable(XX).As(XX)是替换表名没有生效

@Rabbit021
Copy link
Author

加上这句话就可以了Db.MappingTables.Add(typeof(T).Name, tablename);

@idantony
Copy link

我们这边当使用SugarTable在实体上面标注后,不用写As也能更新
[SugarTable("Address")] public class AddressEntity : ModelContext

@Rabbit021
Copy link
Author

我这儿是需要替换表名的,例如[SugarTable("Address")] public class AddressEntity
Updateable(AddressEntity).As(“AddressTable2”) 这时候是更新不了的

@DotNetNext
Copy link
Owner

已修改 节后上班前会同步到GITHUB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants