Wednesday, 4 September 2013

Using a stored procedure within Service Domain Silverlight

Using a stored procedure within Service Domain Silverlight

I created a Domain Service and a stored procedure within, I followed all
steps but the stored procedure can't be found in the client Side. My
tables names are pochrhts and poordedts, and the stored procedure name is
bel_web_Supplier_ConfirmedPOs and it uses two parameter. Can you please
help me with this please ?
[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();
}
}

No comments:

Post a Comment