1- Install EntityFramwork Nuget Packed
2- New Class >public "Nortwind"Context > Inherit from : DBContext
3- In Class > set DbSet<TEntity> TableName(s) {get;set;}
4- Generate DbSet<TEntity> as a new class (Product etc)
5- Write same properties of Product class from Db Table' fields
6- Write connectionString in App.config file after <conficSections> between <configration>
Not: connectionString UI içeren Projedeki App.Config içerisine kaydeilmeli aksi halde Veri tabanında yeni bir DB oluşturur.
<connectionStrings> <add name="NorthwindContext" connectionString="Data Source=.\sqlexpress; Initial Catalog=Northwind; Integrated Security=True; User Id=sa Password=H1978g2808;" providerName="System.Data.SqlClient" /> </connectionStrings>