Groups | Blog | Home
all groups > c# > march 2008 >

c# : How to generate LINQ classes from database


Siegfried Heintze
3/11/2008 7:22:01 PM
I'm watching Luca on
http://www.microsoft.com/emea/msdn/spotlight/sessionh.aspx?videoid=716 and I
lost him between the time he dragged and dropped the northwind classes
customer, order, supplier and product on to the DataClasses1.dbml and then
started using the actual classes in his demo program.

Having dragged the tables, how do I generate classes now?

Thanks,
Ignacio Machin ( .NET/ C# MVP )
3/12/2008 7:49:18 AM
Hi,

"Siegfried Heintze" <SiegfriedHeintze@discussions.microsoft.com> wrote in
message news:48117523-5D47-4822-B423-2EA4CADDAB67@microsoft.com...
[quoted text, click to view]

The classes are generated for you :) , that's part of the beauty. All you
have to do is create the extra methods you need (the classes are marked as
partial)
shangjie.liu@micropatternusa.com
3/12/2008 10:31:17 AM
In vs2008,MS provider a LinqToSql generater.try to add new item into the
project and the new item must be 'Linq to Sql classes';
"Siegfried Heintze" <SiegfriedHeintze@discussions.microsoft.com> wrote in
message news:48117523-5D47-4822-B423-2EA4CADDAB67@microsoft.com...
[quoted text, click to view]

AddThis Social Bookmark Button