コード例 #1
0
 public void Save(Data.Fund entity)
 {
     try
     {
         if (entity.ID == Guid.Empty)
         {
             entity.ID       = Guid.NewGuid();
             entity.LastEdit = DateTime.Now;
             this.Table.Add(entity);
         }
         else
         {
             var view = this.GetViewById(entity.ID);
             if (view.FBankNO != entity.FBankNO)
             {
                 entity.LastEdit = DateTime.Now;
             }
         }
         this.SubmitChanges();
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
        public void Delete(Data.Fund entity)
        {
            try
            {
                if (entity == null)
                {
                    return;
                }

                this.Table.Remove(entity);
                this.SubmitChanges();
            }
            catch
            {
                throw;
            }
        }