예제 #1
0
 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();
     }
 }
예제 #2
0
 /// <summary>
 /// 保存
 /// </summary>
 public void SaveChanges()
 {
     _context.SaveChanges();
 }