Invalid Object Name with Entity framework -EFCodeFirstCTP5

added by jalpesh
7/5/2011 3:20:30 AM

283 Views

Recently I was working on one sample application with EFCodeFirst with the existing database.After doing all the coding I have found a error “Invalid object name 'dbo.Customers'.”. Following was my code for data context using System; using System.Collections.Generic; using System.Data.Entity; using System.Linq; using System.Web; namespace CodeSimplified.Models { public class MyDataContext:DbContext { public DbSet


0 comments