How to generate LINQ classes from database

G

Guest

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';
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

Siegfried Heintze said:
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?

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top