Thread is closed for posting
2 posts, 0 answers
  1. DAlzoubi
    DAlzoubi avatar
    1 posts
    Member since:
    Oct 2014

    Posted 11 Dec 2014 Link to this post

    Am using latest ORM WCF Data services odata 3.0 and would like to implement authorization. I could not find where i should write QueryInterceptor.
    In EntitiesModelService.svc.cs i have only InitializeService method!

    Where i can write below code?

    public Expression<Func<Order, bool>> OnQueryOrders()
    // Filter the returned orders to only orders  
    // that belong to a customer that is the current user. 
    return o => o.Customer.ContactName ==
  2. Kaloyan Nikolov
    Kaloyan Nikolov avatar
    118 posts

    Posted 16 Dec 2014 Link to this post

    Hi Marshal,

    The Telerik Data Access Data services work like the regular services, so you should place you example code in the same class. As those classes are generated by the wizard the right place for you custom code is in a partial class.

    Please make sure that your partial class is with the same namespace with the one generated by the wizard. 

    I hope this helps. Should you have any further questions do not hesitate to get back to us. 

    Kaloyan Nikolov
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
Back to Top