Ejemplo n.º 1
0
 /// <summary>
 /// 插入
 /// </summary>
 /// <param name="info"></param>
 public void Insert(RecordInfo info)
 {
     info.CreateDate = DateTime.Now;
     if (info.Id == Guid.Empty)
     {
         info.Id = Guid.NewGuid();
     }
     storeDB.RecordInfo.Add(info);
     storeDB.SaveChanges();
 }
 /// <summary>
 /// 插入
 /// </summary>
 /// <param name="info"></param>
 public void Insert(AccountInfo info)
 {
     info.Deleted = false;
     if (info.Id == Guid.Empty)
     {
         info.Id = Guid.NewGuid();
     }
     storeDB.AccountInfo.Add(info);
     storeDB.SaveChanges();
 }
 /// <summary>
 /// 插入
 /// </summary>
 /// <param name="info"></param>
 public void Insert(EmployeeInfo info)
 {
     info.CreateDate    = DateTime.Now;
     info.LastUpdatedOn = DateTime.Now;
     info.Deleted       = false;
     if (info.Id == Guid.Empty)
     {
         info.Id = Guid.NewGuid();
     }
     storeDB.EmployeeInfo.Add(info);
     storeDB.SaveChanges();
 }