开发者

How to use LINQ to SQL after changes in database

开发者 https://www.devze.com 2023-01-19 10:46 出处:网络
Note: I know there was disscussion about similar questions before, like in: link text but i have to know how to handle this scenario开发者_C百科:

Note:

I know there was disscussion about similar questions before, like in:

link text

but i have to know how to handle this scenario开发者_C百科:

Problem:

I wrote program that use LINQ to SQL and it will be send to client. Tables that my program uses may be changed ( let's say only added new columns). Is there any way to not update, recompile and send my program to client each time those changes occurs?


I don't think it's possible, because linq to sql classes map your database into objects, and when you change database, model classes do not reflect real database.

0

精彩评论

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