Update dbml designer.cs from layout
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"
精彩评论