Using a stored procedure within Domain Service in Silverlight -
i created domain service , stored procedure within, followed steps stored procedure can't found in client side. tables names pochrhts , poordedts, , stored procedure name bel_web_supplier_confirmedpos , uses 2 parameter. can please me please ?
[enableclientaccess()] public class domainservice1 : linqtoentitiesdomainservice<web_databaseentities> { // todo: // consider constraining results of query method. if need additional input can // add parameters method or create additional query methods different names. // support paging need add ordering 'pochrhts' query. public iqueryable<pochrht> getpochrhts() { return this.objectcontext.pochrhts; } // todo: // consider constraining results of query method. if need additional input can // add parameters method or create additional query methods different names. // support paging need add ordering 'poordedts' query. public iqueryable<poordedt> getpoordedts() { return this.objectcontext.poordedts; } // todo: // consider constraining results of query method. if need additional input can // add parameters method or create additional query methods different names. // support paging need add ordering '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(); } }
try expose iqueryable within method no parameters (just return null) , see if change. far remember wcf ria needs entities must exposed "default" (no parameters) method
hth
Comments
Post a Comment