using System; using System.Linq; using System.Collections.Generic; using System.Drawing; using UploadHandle; using System.Drawing.Drawing2D; using demo;// 1 首先是项目的引入。这里是demo项目。 namespace demo2 { public class Program { static void Main(string[] args) { DataContext _context = new DataContext(); //List<ModelA> list = _context.ModelA.ToList(); //Console.WriteLine(list.ToJsonString()); //ModelA model = new ModelA(); //model.Name = "耨个"; //_context.Add(model);//提交添加 //_context.SaveChanges();//保存修改 //修改 //根据id Find(id); //ModelA obj= _context.ModelA.Find(1); // obj.Name = "搞不定就发生"; // _context.Update(obj); // _context.SaveChanges(); // //删除 // ModelA del = _context.ModelA.Find(4