我正在使用带有Asp.net webforms的角度js.我想使用angular js API从数据库中检索数据.我在google或任何教程中看到的所有内容都使用了带有Asp.net MVC的angular js API.
我的问题是:我们可以在Asp.net web Forms中使用angular js API吗?
如果是,那么方法将与Asp.net MVC中的相同?
此外,我知道angular js适用于SPA(单页应用程序),它有模型视图和控制器.
asp.net asp.net-mvc asp.net-web-api angularjs asp.net-web-api-routing
首先,我很抱歉,因为这是我第二次写这个问题,但之前的解释很糟糕,现在已经很接近了.
我正在为CRM数据库的搜索页面执行linq查询,并且如下所示的正常查询不起作用,我得到了异常:
[System.ServiceModel.FaultException<Microsoft.Xrm.Sdk.OrganizationServiceFault>] = {"'Contact' entity doesn't contain attribute with Name = 'title'."}
Run Code Online (Sandbox Code Playgroud)
对于连接查询,在子句中,其中的内容类似于r.Name =="Me"&& j.LastName =="He"我必须使用两个Where子句进行查询,因为我得到了与上面相同的异常,说表'r'没有'LastName'attributte.
var cms = from i in aux_pr
join cal in Contact on i.aux_CallerRequestorID.Id equals cal.ContactId.Value
join sub in Subject on i.aux_ClassificationID.Id equals sub.SubjectId
where cal.FullName.Contains(searchTerm) ||
sub.Title.Contains(searchTerm)
Run Code Online (Sandbox Code Playgroud)
在这种情况下,我该如何进行此查询.提前致谢!