コード例 #1
0
        public void GetData_WithoutInclude_OK()
        {
            context.Configuration.LazyLoadingEnabled = false;

            Expression <Func <Clientes, bool> > filter = a => a.IdCliente == 16;

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

            Assert.NotNull(result);
            Assert.Equal(1, result.Count());
        }
コード例 #2
0
        /// <summary>
        /// Get Entities in DB from qry with object parameters (EF)
        /// </summary>
        /// <param name="filter"></param>
        /// <returns>Entities for this filter</returns>
        public IEnumerable <TEntity> GetData(string qry, object parameters)
        {
            var result = efRepository.GetData(qry, parameters);

            return(result);
        }