sir !.... I'm new to the this topic! ihave written the code for edms but it is giving exception..... there are 2 files program.cs : using System; using System.Collections.Generic; using System.Linq; using System.Data.Entity; using System.Data; using System.Data.SqlClient; using System.Text; using BusinessObjects; namespace EntityFramework_demo { class Program { public static void test_App() { certificationEntities cer = new certificationEntities(); Emp em = new Emp(); em.ID = 3; em.Name = "niitin"; em.Age = 23; cer.AddObject("nitin",em); cer.SaveChanges(); Console.Write("data saved successfully"); } static void Main(string[] args) { test_App(); } } } But it is giving exception : The EntitySet name 'certificationEntities.nitin' could not be found.
解决方案更多推荐
实体数据模型错误
发布评论