Esempio n. 1
0
        public async void GetDataAsync_WithoutInclude_OK()
        {
            context.Configuration.LazyLoadingEnabled = false;

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

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

            Assert.NotNull(result);
            Assert.Equal(1, result.Count());
        }
Esempio n. 2
0
 /// <summary>
 /// Get async Entities in DB from qry with object parameters (EF)
 /// </summary>
 /// <param name="filter"></param>
 /// <returns>Entities for this filter</returns>
 public Task <IEnumerable <TEntity> > GetDataAsync(string qry, object parameters)
 {
     return(efRepository.GetDataAsync(qry, parameters));
 }