开发者

How to define the database schema name in EF CTP 5

开发者 https://www.devze.com 2023-02-14 19:08 出处:网络
I am using CTP 5 with existing database. Tables are created under a schema different than dbo. The SQL generated by the DbContext is using dbo. How do I make the DbCo开发者_运维百科ntext use the corre

I am using CTP 5 with existing database. Tables are created under a schema different than dbo. The SQL generated by the DbContext is using dbo. How do I make the DbCo开发者_运维百科ntext use the correct schema name?


ToTable has an overload which accepts two strings: the first is the name of the table and the second the name of the schema. The same possibility is offered by the attribute used to decorate the class.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号