public bool UpdateWhereExtendido(string WhereEx, FuenteEntityUpdate EntityUpdate) { try { return(this.CreateDataAccess().UpdateWhereExtendido(WhereEx, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool UpdateFromInfo(FuenteEntityKey EntityKey, FuenteEntityInfo EntityInfo) { try { FuenteEntityUpdate EntityUpdate = new FuenteEntityUpdate(); EntityUpdate.LoadFromInfo(EntityInfo); return(this.Update(EntityKey, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool Update(FuenteEntityKey EntityKey, FuenteEntityUpdate EntityUpdate) { try { if (!EntityKey.Validate()) { return(false); } return(this.CreateDataAccess().Update(EntityKey, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool UpdateWhereExtendido(string WhereEx, FuenteEntityUpdate EntityUpdate) { DbCommand storedProcCommand = this.Database.GetStoredProcCommand("Fuente_UpdateWhereExtendido"); try { using (storedProcCommand) { this.Database.AddInParameter(storedProcCommand, "WhereExtendido", DbType.String, (object)WhereEx); this.Database.AddInParameter(storedProcCommand, "Nombre", DbType.AnsiString, (object)EntityUpdate.Nombre); return(Convert.ToBoolean(this.Database.ExecuteNonQuery(storedProcCommand))); } } catch (SqlException ex) { throw ex; } catch (Exception ex) { throw ex; } }
public bool Update(FuenteEntityKey EntityKey, FuenteEntityUpdate EntityUpdate) { DbCommand storedProcCommand = this.Database.GetStoredProcCommand("Fuente_UpdateOptionalFields"); try { using (storedProcCommand) { this.Database.AddInParameter(storedProcCommand, "FntID", DbType.AnsiString, (object)EntityKey.FntID); this.Database.AddInParameter(storedProcCommand, "Nombre", DbType.AnsiString, (object)EntityUpdate.Nombre); return(Convert.ToBoolean(this.Database.ExecuteNonQuery(storedProcCommand))); } } catch (SqlException ex) { throw ex; } catch (Exception ex) { throw ex; } }