摘要: 1。Entity FrameWork的增删改:demoEntities db = new demoEntities();//EF上下文 Product product = new Product(); //product.PName = "zifu"; //product.DelFlag = 0; //db.Product.AddObject(product);//AddObject的方法的本质为先Attach,后db.ObjectStateManager.ChangeObjectState(product, EntitySta... 阅读全文
posted @ 2012-12-29 14:44 MisterLip 阅读(1242) 评论(0) 推荐(1)