Ejemplo n.º 1
0
 public bool Remove(T entity)
 {
     try
     {
         string sql = Delete.Remove(entity);
         using (IDbCommand command = CreateCommand(sql))
         {
             bool result = command.ExecuteNonQuery() > 0;
             command.Dispose();
             return(result);
         }
     }
     catch
     {
         throw;
     }
 }