Wednesday, March 30, 2011

LinQ to Sql


LINQ to SQL is an O/RM (object relational mapping) implementation that ships in the .NET Framework "Orcas" release, and which allows you to model a relational database using .NET classes.  You can then query the database using LINQ, as well as update/insert/delete data from it.
LINQ to SQL fully supports transactions, views, and stored procedures.  It also provides an easy way to integrate data validation and business logic rules into your data model.

Create a New Windows Application. Add a new Item -> ADO.NET ENTITY MODEL 

select "Generate From Database" . Choose the Connection and Tables.this will create a Model1.edmx file.





0 comments:

Post a Comment