static void Main(string[] args) { Console.WriteLine("Hello World!"); using (AeDbContext context = new AeDbContext()) { context.SysUsers.Add(new Ator.Entity.Sys.SysUser() { Email = "*****@*****.**", UserName = "******", Password = "******", }); context.SaveChanges(); Console.ReadKey(); } }
/// <summary> /// 保存 /// </summary> public void SaveChanges() { _context.SaveChanges(); }