Take the 2-minute tour ×

I have 2 projects which use the same database. If I change database structure for first project, how can I update linq2sql model in my second project?

every time delete and recreate all objects? can I syncronize my model with database?

share|improve this question

1 Answer 1

There is no out-of-the box synchronization for Linq-2-sql. There are some third party products that will do this for you. Look here How to update Linq to SQL dbml file?

However, have you considered moving the data layer to a separate class library and reference that in both projects? That way you are always consistent.

share|improve this answer

Your Answer


