public IList <TIPO_ESTADO> GetAllFilters(TIPO_ESTADO entity)
        {
            List <TIPO_ESTADO> estados = new List <TIPO_ESTADO>();

            using (var comando = _database.GetStoredProcCommand(string.Format("{0}{1}", ConectionStringRepository.EsquemaName, "p_TIPO_ESTADO_GetAllFilters")))
            {
                _database.AddInParameter(comando, "@tabla", DbType.String, entity.tabla);

                using (var lector = _database.ExecuteReader(comando))
                {
                    while (lector.Read())
                    {
                        estados.Add(new TIPO_ESTADO
                        {
                            id_estado = lector.IsDBNull(lector.GetOrdinal("id_estado")) ? default(int) : lector.GetInt32(lector.GetOrdinal("id_estado")),
                            estado    = lector.IsDBNull(lector.GetOrdinal("estado")) ? default(string) : lector.GetString(lector.GetOrdinal("estado")),
                        });
                    }
                }
            }

            return(estados);
        }
 public int Update(TIPO_ESTADO entity)
 {
     throw new NotImplementedException();
 }
 public IList <TIPO_ESTADO> GetById(TIPO_ESTADO entity)
 {
     throw new NotImplementedException();
 }
 public bool Exists(TIPO_ESTADO entity)
 {
     throw new NotImplementedException();
 }
예제 #5
0
 public IList <TIPO_ESTADO> GetAllFilters(TIPO_ESTADO entity)
 {
     return(TIPO_ESTADORepository.Instancia.GetAllFilters(entity));
 }