Usefulness of IObjectScopeProvider Interface

Thread is closed for posting
2 posts, 0 answers
  1. Josh Pollard
    Josh Pollard avatar
    5 posts
    Member since:
    Aug 2009

    Posted 14 Dec 2009 Link to this post

    What is the point of having the generated ObjectScopeProvider objects implement the IObjectScopeProvider interface when the IObjectScopeProvider doesn't have any members?

    It would be a lot more useful in the IObjectScopeProvider interface had the methods for ObjectScope and GetNewObjectScope. This would make it much easier to write a fairly generic wrapper around Open Access so that I could use one library for my repository classes, and then just plug in my ObjectScopeProvider at run time.
  2. Dimitar Kapitanov
    Dimitar Kapitanov avatar
    632 posts

    Posted 16 Dec 2009 Link to this post

    Hello Josh Pollard,

     Currently the interface is used just as a marker so that we can lookup such types via reflection. As to a better wrapper, with Q1 2010 we will be generating similar data context derivation to the one Linq to Sql and Entity Framework have.

    Dimitar Kapitanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top