public vAlimentoNutrienteEntityInfo.vAlimentoNutrienteEntityInfoList Search(vAlimentoNutrienteEntityFilter EntityFilter, bool NoUtilizar) { try { return(this.DataTableToListOfEntityInfo(this.CreateDataAccess().Search(EntityFilter))); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public DataTable SearchCount(vAlimentoNutrienteEntityFilter EntityFilter) { try { return(this.CreateDataAccess().SearchCount(EntityFilter)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public void Search(vAlimentoNutrienteEntityFilter EntityFilter, out vAlimentoNutrienteEntityInfo.vAlimentoNutrienteEntityInfoList listaAGenerar) { try { listaAGenerar = this.DataTableToListOfEntityInfo(this.CreateDataAccess().Search(EntityFilter)); } catch (Exception ex) { Helpers.Logger.Logger.LogExceptionStatic(ex); throw ex; } }
public DataTable Search(vAlimentoNutrienteEntityFilter EntityFilter) { DbCommand storedProcCommand = this.DataBase.GetStoredProcCommand("vAlimentoNutriente_Search"); try { using (storedProcCommand) { this.DataBase.AddInParameter(storedProcCommand, "WhereExtendido", DbType.String, (object)EntityFilter.WhereExtendido); this.DataBase.AddInParameter(storedProcCommand, "OrdenDeRegistros", DbType.String, (object)EntityFilter.OrderBy); this.DataBase.AddInParameter(storedProcCommand, "OpeAlimentoId", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeAlimentoId)); this.DataBase.AddInParameter(storedProcCommand, "AlimentoId", DbType.Int32, (object)EntityFilter.AlimentoId); this.DataBase.AddInParameter(storedProcCommand, "OpeAlimentoCodigo", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeAlimentoCodigo)); this.DataBase.AddInParameter(storedProcCommand, "AlimentoCodigo", DbType.AnsiString, (object)EntityFilter.AlimentoCodigo); this.DataBase.AddInParameter(storedProcCommand, "OpeAlimentoNombre", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeAlimentoNombre)); this.DataBase.AddInParameter(storedProcCommand, "AlimentoNombre", DbType.AnsiString, (object)EntityFilter.AlimentoNombre); this.DataBase.AddInParameter(storedProcCommand, "OpeNutrienteId", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeNutrienteId)); this.DataBase.AddInParameter(storedProcCommand, "NutrienteId", DbType.Int32, (object)EntityFilter.NutrienteId); this.DataBase.AddInParameter(storedProcCommand, "OpeNutrienteNombre", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeNutrienteNombre)); this.DataBase.AddInParameter(storedProcCommand, "NutrienteNombre", DbType.AnsiString, (object)EntityFilter.NutrienteNombre); this.DataBase.AddInParameter(storedProcCommand, "OpeAlimentoNutrienteCantidad", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeAlimentoNutrienteCantidad)); this.DataBase.AddInParameter(storedProcCommand, "AlimentoNutrienteCantidad", DbType.Decimal, (object)EntityFilter.AlimentoNutrienteCantidad); this.DataBase.AddInParameter(storedProcCommand, "OpeNutrienteUDMId", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpeNutrienteUDMId)); this.DataBase.AddInParameter(storedProcCommand, "NutrienteUDMId", DbType.AnsiString, (object)EntityFilter.NutrienteUDMId); this.DataBase.AddInParameter(storedProcCommand, "OpePerteneceA", DbType.String, (object)ConvertirOperadores.ConvertirOperador(EntityFilter.OpePerteneceA)); this.DataBase.AddInParameter(storedProcCommand, "PerteneceA", DbType.Int32, (object)EntityFilter.PerteneceA); return(this.DataBase.ExecuteDataSet(storedProcCommand).Tables[0]); } } catch (SqlException ex) { throw ex; } catch (Exception ex) { throw ex; } }