Friday, January 11, 2019

.dbml is kinda like the .edmx of LINQ to SQL.

There is not a GUI visual tool however. It will have a designer.cs file in it with all of the data fed classes. These are partials and you may extend each of them with your own partial in a different file that will not get replaced when the database changes and updates the .dbml stuff. This is very three layers, huh? No onion architecture here. No seperation between POCOs and their database implementation. Have fun writing unit tests around that! You may need to install the "LINQ to SQL tools" in Visual Studio to update the .dbml from your schema.

No comments:

Post a Comment