Пример #1
0
            public UserFacade(
                RepositoryBase <UserEntity, Guid> repository,
                QueryBase <UserEntity, Guid, UserFilter> query) : base(repository, query)
            {
                var userEntity = repository.GetById(Guid.Empty);

                var userFilter = new UserFilter
                {
                    Name = "Fero",
                    Age  = 30
                };
                var userEntities = query.Execute(userFilter);
            }
Пример #2
0
 public Task <TResult> Execute <TResult>(QueryBase <TResult> query)
 {
     return(query.Execute(this.context));
 }
Пример #3
0
 public Task <TResult> Execute <TResult>(QueryBase <TResult> query) => query.Execute(context);