コード例 #1
0
 public void Insert(SOTax entity)
 {
     try
     {
         if (entity.Id == Guid.Empty)
         {
             entity.Id = Guid.NewGuid();
         }
         this.Table.Add(entity);
         this.SubmitChanges();
     }
     catch
     {
         throw;
     }
 }
コード例 #2
0
 public void Save(SOTax entity)
 {
     try
     {
         if (entity.Id == Guid.Empty)
         {
             this.Insert(entity);
         }
         else
         {
             this.SubmitChanges();
         }
     }
     catch
     {
         throw;
     }
 }