Asp.net 试图重新创建一个问题的解决方案,需要一些帮助

Asp.net 试图重新创建一个问题的解决方案,需要一些帮助,asp.net,asp.net-mvc-5,Asp.net,Asp.net Mvc 5,尝试重新创建给定的解决方案,但不确定在何处找到derloopkat在其示例中使用的querymanager [HttpPost] public ActionResult Query(FormQueryModel model) { var queryManager = new QueryManager(model); model.QueryResults = queryManager.GetResults(); return View(model); } 我的视图模型

尝试重新创建给定的解决方案,但不确定在何处找到derloopkat在其示例中使用的querymanager

[HttpPost]
public ActionResult Query(FormQueryModel model)
{
    var queryManager = new QueryManager(model);
    model.QueryResults = queryManager.GetResults();
    return View(model);
}
我的视图模型

   public class PartRequestInfoSearch
        {
            public int? Building { get; set; }
            public int? PartType { get; set; }
            public int? PartStatus { get; set; }

            public Nullable<System.DateTime> tmpStartDate { get; set; }
            public Nullable<System.DateTime> tmpEndDate { get; set; }

            public int PageSize { get; set; }

           public List<RequestedPartInfo> RequestedPartInfos { get; set; }

            public PartRequestInfoSearch()
            {
                this.RequestedPartInfos = new List<RequestedPartInfo>();
            }

        }

    }

 public class RequestedPartInfo
    {
        public int idPartRequest { get; set; }
        public string Building { get; set; }
        public string RequestNumber { get; set; }
        public string PartNumber { get; set; }
        public string VendorPartNumber { get; set; }
        public string PartDescription { get; set; }
        public int StockQTY { get; set; }
        public int RequestQTY { get; set; }
        public int ShippedQTY { get; set; }
        public string PartStatus { get; set; }
    }
公共类PartRequestInfoSearch
{
公共int?生成{get;set;}
公共int?PartType{get;set;}
公共int?PartStatus{get;set;}
公共可为空的tmpStartDate{get;set;}
公共可为空的tmpEndDate{get;set;}
公共int PageSize{get;set;}
公共列表RequestedPartInfo{get;set;}
公共PartRequestInfoSearch()
{
this.requestedpartinfo=新列表();
}
}
}
公共类RequestedPartInfo
{
public int idPartRequest{get;set;}
公共字符串生成{get;set;}
公共字符串RequestNumber{get;set;}
公共字符串零件号{get;set;}
公共字符串VendorPartNumber{get;set;}
公共字符串PartDescription{get;set;}
public int StockQTY{get;set;}
public int RequestQTY{get;set;}
public int ShippedQTY{get;set;}
公共字符串PartStatus{get;set;}
}

这是一个存根类,用于演示查询和搜索结果。对于这个问题,实际实现的细节并不重要。我正在尝试实现一个搜索页面,该页面采用多个搜索条件并在同一页面上返回结果。。很像他所描述的。这样一个类的细节将取决于数据源。原问题没有具体说明。你需要提供这些来找到一个具体的解决方案。就像实体框架和数据库一样?是的,这是可行的。如何选择实现检索数据取决于您自己。我建议你选择一种方法并尝试一下。如果您的实现陷入困境,请提供一个解决方案。