Exemplo n.º 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;
     }
 }
Exemplo n.º 2
0
        public void Delete(Data.Fund entity)
        {
            try
            {
                if (entity == null)
                {
                    return;
                }

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