Tuesday, May 10, 2011

Simple Linq To Sql Example

How to Use Linq to sql in dotnet ?

--Take the Class with same name of Database
--Than Inherit With Class DotContext
--For This Class u have to add Linq ,data,Mapping references to project

--Using System.Linq.Data;
--Using System.Linq.Data.Mppaing
Ex:

public class Mydatabase() :DotContext
{

}

No comments:

Post a Comment