简体   繁体   中英

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 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?

我相信您需要右键单击DBML文件,然后选择“运行自定义工具”

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM