0

我在其中创建了一个域服务和一个存储过程,我遵循了所有步骤,但在客户端中找不到存储过程。我的表名称是 pochrhts 和 pooddedts,存储过程名称是 bel_web_Supplier_ConfirmedPOs,它使用两个参数。你能帮我解决这个问题吗?

[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();
    }
}
4

1 回答 1

0

尝试从没有参数的方法中公开 IQueryable(只返回 null),看看是否有变化。据我所知,wcf ria 需要所有实体都必须使用“默认”(无参数)方法公开

高温高压

于 2013-09-05T21:29:28.800 回答