Exemple #1
0
 /// <summary>
 /// (基础成员)删除实体集合(事务中)
 /// </summary>
 /// <param name='dic'></param>
 /// <param name="ts">事务</param>
 /// <returns></returns>
 public int DelEntityObjects(Dictionary <string, object> dic, Transaction ts)
 {
     try
     {
         DeleteCriteria dc = GetDeleteCriteria(dic);
         return(dc.Execute(ts));
     }
     catch (PersistenceLayerException exp)
     {
         throw new Exception(exp.ErrorMessage);
     }
 }
Exemple #2
0
 /// <summary>
 /// (基础成员)删除实体集合
 /// </summary>
 /// <returns></returns>
 public int DelEntityObjects()
 {
     try
     {
         DeleteCriteria dc = GetDeleteCriteria();
         return(dc.Execute());
     }
     catch (PersistenceLayerException exp)
     {
         ErrorLog.Write(exp, exp.ErrorMessage);
         throw new Exception(exp.ErrorMessage);
     }
 }