public IEnumerable <TEntity> ReadAll()
 {
     if (allcachedEntities == null)
     {
         allcachedEntities = decorated.ReadAll();
     }
     return(allcachedEntities);
 }
        public IEnumerable <TEntity> ReadAll()
        {
            IEnumerable <TEntity> allEntities;

            using (var transaction = new TransactionScope())
            {
                allEntities = decoratedCrud.ReadAll();
                transaction.Complete();
            }
            return(allEntities);
        }
        public IEnumerable <TEntity> ReadAll()
        {
            IEnumerable <TEntity> result;

            using (var transaction = new TransactionScope())
            {
                result = decoratedCrud.ReadAll();
                transaction.Complete();
            }

            return(result);
        }
 public IEnumerable <TEntity> ReadAll()
 {
     log.LogMessage(string.Format("Reading all entities of type { 0}", typeof(TEntity).Name));
     return(decoratedCrud.ReadAll());
 }
예제 #5
0
 public IEnumerable <TEnity> ReadAll()
 {
     log.Info($"Reading all entities of type {typeof(TEnity).Name}");
     return(decoratedCrud.ReadAll());
 }