public bool UpdateWhereExtendido(string WhereEx, aspnet_RolesEntityUpdate EntityUpdate) { DbCommand storedProcCommand = this.DataBase.GetStoredProcCommand("aspnet_Roles_UpdateWhereExtendido"); try { using (storedProcCommand) { this.DataBase.AddInParameter(storedProcCommand, "WhereExtendido", DbType.String, (object)WhereEx); this.DataBase.AddInParameter(storedProcCommand, "ApplicationId", DbType.Guid, (object)EntityUpdate.ApplicationId); this.DataBase.AddInParameter(storedProcCommand, "RoleName", DbType.String, (object)EntityUpdate.RoleName); this.DataBase.AddInParameter(storedProcCommand, "LoweredRoleName", DbType.String, (object)EntityUpdate.LoweredRoleName); this.DataBase.AddInParameter(storedProcCommand, "Description", DbType.String, (object)EntityUpdate.Description); this.DataBase.AddInParameter(storedProcCommand, "LongDescription", DbType.AnsiString, (object)EntityUpdate.LongDescription); return(Convert.ToBoolean(this.DataBase.ExecuteNonQuery(storedProcCommand))); } } catch (SqlException ex) { throw ex; } catch (Exception ex) { throw ex; } }
public bool UpdateWhereExtendido(string WhereEx, aspnet_RolesEntityUpdate EntityUpdate) { try { return(this.CreateDataAccess().UpdateWhereExtendido(WhereEx, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool UpdateFromInfo(aspnet_RolesEntityKey EntityKey, aspnet_RolesEntityInfo EntityInfo) { try { aspnet_RolesEntityUpdate EntityUpdate = new aspnet_RolesEntityUpdate(); EntityUpdate.LoadFromInfo(EntityInfo); return(this.Update(EntityKey, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public bool Update(aspnet_RolesEntityKey EntityKey, aspnet_RolesEntityUpdate EntityUpdate) { try { if (!EntityKey.Validate()) { return(false); } return(this.CreateDataAccess().Update(EntityKey, EntityUpdate)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }