This is a migrated thread and some comments may be shown as answers.
Usefulness of IObjectScopeProvider Interface
1 Answer 35 Views
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Josh Pollard
Top achievements
Rank 1
Josh Pollard asked on 15 Dec 2009, 03:59 AM
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.

1 Answer, 1 is accepted

Sort by
0
Dimitar Kapitanov
Telerik team
answered on 16 Dec 2009, 07:34 AM
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.


Regards,
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.
Tags
General Discussions
Asked by
Josh Pollard
Top achievements
Rank 1
Answers by
Dimitar Kapitanov
Telerik team
Share this question
or