我在其中创建了域服务和存储过程,我遵循了所有步骤,但在客户端无法找到存储过程。我的表名是pochrhts和poordedts,存储过程名是bel_web_Supplier_ConfirmedPO,它使用两个参数。你能帮我解决这个问题吗?
[EnableClientAccess()]
public class DomainService1 : LinqToEntitiesDomainService<Web_DatabaseEntities>
{
// TODO:
// Consider constraining the results of your query method. If you need additional input you can
// add parameters to this method or create additional query methods with different names.
// To support paging you will need to add ordering to the 'pochrhts' query.
public IQueryable<pochrht> GetPochrhts()
{
return this.ObjectContext.pochrhts;
}
// TODO:
// Consider constraining the results of your query method. If you need additional input you can
// add parameters to this method or create additional query methods with different names.
// To support paging you will need to add ordering to the 'poordedts' query.
public IQueryable<poordedt> GetPoordedts()
{
return this.ObjectContext.poordedts;
}
// TODO:
// Consider constraining the results of your query method. If you need additional input you can
// add parameters to this method or create additional query methods with different names.
// To support paging you will need to add ordering to the 'poordehts' query.
public IQueryable<poordeht> GetPoordehts()
{
return this.ObjectContext.poordehts;
}
public IQueryable<bel_web_Supplier_ConfirmedPOs_Result> bel_web_Supplier_ConfirmedPOs(string a, int b)
{
return this.ObjectContext.bel_web_Supplier_ConfirmedPOs(a, b).AsQueryable();
}
}
答案 0 :(得分:0)
尝试在没有参数的方法中公开IQueryable(只返回null)并查看是否有变化。据我所知,wcf ria需要所有实体必须使用&#34;默认&#34; (无参数)方法
HTH