Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add column in database then update the dbml

Tags:

c#

linq-to-sql

I have an application that have a dynamic table in database. The problem is, let say there's a change in table structure like addition of column, can I update the dbml file dynamically? so I don't have to fix the application everytime the column been added

like image 821
Harits Fadillah Avatar asked Nov 04 '22 06:11

Harits Fadillah


1 Answers

Using the DBML and code generation approach, no there's no way to let your application take advantage of the changes automagically. The DBML results in new generated code which needs to be compiled, that requires the DSL Toolkit, Visual Studio and the .NET SDK to be present.

like image 178
jessehouwing Avatar answered Nov 11 '22 07:11

jessehouwing