Esempio n. 1
0
        public void GetData_OneFilter_OK()
        {
            object filter = new { IdIncidencia = 395 };

            IEnumerable <GEHD_INCIDENCIAS> result = instance.GetData(filter);

            Assert.NotNull(result);
        }
Esempio n. 2
0
        /// <summary>
        /// Get Entities in DB from a object filter (equals property with value) (DP)
        /// Example:  new { Name = "Peter", Age = 18 } --> Select * ... Where Name = 'Peter' and Age = 18
        /// </summary>
        /// <param name="filter"></param>
        /// <returns>Entities for this filter</returns>
        public IEnumerable <TEntity> GetData(object filter)
        {
            var result = dpRepository.GetData(filter);

            return(result);
        }