Exemple #1
0
        public PagingQueryModel <TEntity> GetPagingQueryModel()
        {
            IPagingQueryModelBuild <TEntity> pagingQueryModelBuild = null;

            pagingQueryModelBuild = HttpContext.RequestServices.GetService <IPagingQueryModelBuild <TEntity> >();

            PagingQueryModelDesigner <TEntity> pagingQueryModelDesigner = new PagingQueryModelDesigner <TEntity>();

            pagingQueryModelDesigner.Build(pagingQueryModelBuild);

            return(pagingQueryModelBuild.GetPaginQueryModel());
        }
 public void Build(IPagingQueryModelBuild <TEntity> pagingQueryModelBuild)
 {
     pagingQueryModelBuild.MakePagingQueryModel();
 }