You don't need this, but if you want really get the most out of T4, first, head over to Clarius Consulting and get their "T4 Editor Community Edition." That'll get you some basic coloring.They have a pay version that gets you more if you want.Right-click on the DAL project and select Add New Item.From the dialog choose ‘LINQ to SQL Classes’ and call the file The file itself is essentially an XML file that describes the database which is used to generate our classes.
If you want to customize the LINQ to SQL code generation phase in your project without additional tool dependencies this could be what you’re looking for.The result should look like this: Save and close the the O/R desinger.In solution explorer you should see the file, expanding this shows two other files, layout and University. Data Context, and your model classes which were generated from the dbml file.Now, go into Visual Studio and make a Console App (or any app) and add a Text File, but name it something with a extension. If you're using C#, you'll have a sub file, or if you're using VB, a sub file.You'll get a warning since it's a generator, that someone could generate evil. That's the file that will hold the result of the generation.
NET Is Foreign Key attribute for associations now generates stored procedures including insert/update/delete with concurrency checking.