开发者

How to define the database schema name in EF CTP 5

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜