Exemplo n.º 1
0
 public UpdateOrInsertResult UpdateOrInsert(T entity)
 {
     try
     {
         return(ObjectDAO.UpdateOrInsert(entity));
     }
     finally
     {
         entity = default(T);
     }
 }
Exemplo n.º 2
0
 private ObjectBLO()
 {
     baseDao = ObjectDAO.Current;
     dao     = ObjectDAO.Current;
 }
Exemplo n.º 3
0
 public int Delete(Condition condition)
 {
     return(ObjectDAO.Delete(condition));
 }
Exemplo n.º 4
0
 public bool Delete(T entity)
 {
     return(ObjectDAO.Delete(entity));
 }
Exemplo n.º 5
0
 public bool DeleteID(params object[] id)
 {
     return(ObjectDAO.DeleteByKeys(id));
 }
Exemplo n.º 6
0
 public bool Update(T entity)
 {
     return(ObjectDAO.Update(entity));
 }
Exemplo n.º 7
0
 public bool Insert(T entity)
 {
     return(ObjectDAO.Insert(entity));
 }