class Program
    {
        private static DataClasses1DataContext context= new DataClasses1DataContext();        static void Main(string[] args)
        {
            TestInsert();
            Console.ReadKey();
        }        private static void TestInsert()
        {
            Category category1 = new Category() { name = "国际新闻"};
            Category category2 = new Category() { name = "体育新闻"};
            Category category3 = new Category() { name = "财经要闻"};            Bulletin bulletin = new Bulletin() { Content = "曼联晋级冠军杯四强", Date = DateTime.Now, Title = "曼联晋级冠军杯四强" };
            Bulletin bulletin2 = new Bulletin()
            {
                Content = "18:00直播亚冠首尔VS山东,敬请期待!!!",
                Date = DateTime.Now,
                Title = "18:00直播亚冠首尔VS山东"
            };            category2.Bulletin.Add(bulletin);
            category2.Bulletin.Add(bulletin2);            context.Category.InsertOnSubmit(category1);
            context.Category.InsertOnSubmit(category2);
            context.Category.InsertOnSubmit(category3);            context.SubmitChanges();
        }
小菜刚学习linq 2 sql,照着网上的教材做的。http://developer.51cto.com/art/200904/120915_1.htm但是执行到最后一句代码时context.SubmitChanges();  就报如题的异常。请各位高手指点迷津,谢谢!!