예제 #1
0
        public IList <CVN_PRODUCTO_PLAN> GetAllActivesFilters(CVN_PRODUCTO_PLAN entity)
        {
            List <CVN_PRODUCTO_PLAN> producto_plan = new List <CVN_PRODUCTO_PLAN>();

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

                using (var lector = _database.ExecuteReader(comando))
                {
                    while (lector.Read())
                    {
                        producto_plan.Add(new CVN_PRODUCTO_PLAN
                        {
                            id_producto_plan = lector.IsDBNull(lector.GetOrdinal("id_producto_plan")) ? default(int) : lector.GetInt32(lector.GetOrdinal("id_producto_plan")),
                            c_codigo         = lector.IsDBNull(lector.GetOrdinal("c_codigo")) ? default(string) : lector.GetString(lector.GetOrdinal("c_codigo")),
                            t_descripcion    = lector.IsDBNull(lector.GetOrdinal("t_descripcion")) ? default(string) : lector.GetString(lector.GetOrdinal("t_descripcion")),
                        });
                    }
                }
            }

            return(producto_plan);
        }
예제 #2
0
 public int Update(CVN_PRODUCTO_PLAN entity)
 {
     throw new NotImplementedException();
 }
예제 #3
0
 public IList <CVN_PRODUCTO_PLAN> GetById(CVN_PRODUCTO_PLAN entity)
 {
     throw new NotImplementedException();
 }
예제 #4
0
 public IList <CVN_PRODUCTO_PLAN> GetAllActivesFilters(CVN_PRODUCTO_PLAN entity)
 {
     return(CVN_PRODUCTO_PLANRepository.Instancia.GetAllActivesFilters(entity));
 }
예제 #5
0
 public bool Exists(CVN_PRODUCTO_PLAN entity)
 {
     throw new NotImplementedException();
 }