public bool UpdateWhereExtendido(string WhereEx, AlimentoEntityUpdate EntityUpdate) { try { return(this.CreateDataAccess().UpdateWhereExtendido(WhereEx, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool UpdateFromInfo(AlimentoEntityKey EntityKey, AlimentoEntityInfo EntityInfo) { try { AlimentoEntityUpdate EntityUpdate = new AlimentoEntityUpdate(); EntityUpdate.LoadFromInfo(EntityInfo); return(this.Update(EntityKey, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool Update(AlimentoEntityKey EntityKey, AlimentoEntityUpdate EntityUpdate) { try { if (!EntityKey.Validate()) { return(false); } return(this.CreateDataAccess().Update(EntityKey, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }