开发者

Update dbml designer.cs from layout

开发者 https://www.devze.com 2023-03-05 02:23 出处:网络
Usually when I want to add a table to my dbml, I drag the table over from my server explorer. I\'m having issues connecting to my database from the Server Explorer, so I decided to just add my class

Usually when I want to add a table to my dbml, I drag the table over from my server explorer.

I'm having issues connecting to my database from the Server Explorer, so I decided to just add my class 开发者_JS百科by right-clicking in the designer and selecting Add Class. So I created the class and properties to match up with the database.

But for some reason, none of the code was generated for it in the designer.cs file. Is there a way to generate all that code?


I believe you need to right-click on the DBML file and choose "Run Custom Tool"

0

精彩评论

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