wcf-data-services

    0热度

    1回答

    我想创建使用WCF数据服务和实体的客户端服务器应用程序首先为服务器端和WPF与客户端的MVVM。 这一切都很好,除了在一个步骤中, 我实现了每个实体的部分类(以避免自动生成的代码问题)来实现名为IPrimaryModel的通用接口,该接口实现了每个表中的所有公共属性,如Id,CreattionDate等下面 是一个例子: public Interface IPrimaryModel {

    0热度

    1回答

    我在WPF中做了一个应用程序,它假设获取我的表单上的数据并将其保存到数据库(通过数据服务)。如果我在我的机器上和托管的服务器上执行此操作,则所有服务都可以正常工作。但是如果我在不同的机器上执行DataServiceRequestException。我猜是配置的东西,但例外是不是非常acurate。 有没有办法从那里获得更多信息? 我已经有了: config.UseVerboseErrors =

    1热度

    1回答

    我试图经由邮差 [OperationContract] [WebInvoke(Method = "POST", UriTemplate = "Login"] string Login(string host, string user, string pass, string applicationId); public string Login(string host, string use

    0热度

    1回答

    嗨我正在devextreme多渠道的应用程序,我有一个视图,显示从sql服务器通过wcf odata服务实体提取的城市列表。我遇到一个问题,它只能提取前20条记录,并且会跳过剩余的记录。我用Google搜索,发现有一个名为 MaxResultSetsPerCollection 增加一个实体的返回结果中WCF的属性。我宣布它为config.MaxResultSetsPerCollection =10

    0热度

    1回答

    在c#console项目中,我添加了wsdl的服务参考。 在应用程序配置我有下面的XML代码: <bindings> <basicHttpBinding> <binding name="verificaValiditaPatenteSoap11" /> </basicHttpBinding> </bindings> <client> <endpoint

    0热度

    1回答

    我需要过滤WCF System.Net跟踪日志。我们可以将XPath过滤器应用于System.Net源,这是我们应用于messageLogging的方式吗? 我的配置文件System.Diagnostics程序段如下: <system.diagnostics> <sources> <source tracemode="protocolonly" name="System.Ne

    1热度

    1回答

    我有下面的代码调用WCF代理: - var client = new ServiceClientProxy(); try { var documents = client.GetDocuments(); client.Close(); if(documents.Length > 50) { throw new Exception("Too

    0热度

    1回答

    我有一个包含Student类,只返回一个双(平均值)变量WCF: public class Student { public String Name { set; get; } public String Family { set; get; } public List<double> GradeList { get; } 我插入这个WCF在我的项目参考 现在

    1热度

    2回答

    我有一个可使用的WCF数据服务(让我们假设我无法访问它的源代码)。 我需要POCO类表示由数据服务提供的相同类。 这里是一个例子。 服务: public class Info { public int ID {get; set} public string Data {get; set} } public IQueryable<Info> GetInfo() {

    1热度

    1回答

    我想将我的linq查询结果恢复为json格式。我一直在寻找几个小时。 这里是我的代码: public IEnumerable<callersW> GetAllCallersF() { testCDREntities1 context = this.CurrentDataSource; var query = ( from oneCaller in CurrentDat