ContextManager and devart dotConnect LINQ to Oracle

ContextManager and devart dotConnect LINQ to Oracle

Old forum URL: forums.lhotka.net/forums/t/6492.aspx


Curelom posted on Monday, February 23, 2009

I'm looking into using devart's dotConnect to get me Linq to SQL capabilities with Oracle. Can the data context objects based off of Devart.Data.Linq.DataContext created by this third party be used with the ContextManager in CSLA? If not, what might be some work-arounds?

RockfordLhotka replied on Wednesday, February 25, 2009

If their datacontext inherits from Microsoft's DataContext then yes, otherwise no. The constraint on the generic type is "DataContext", and there's no other real option since Microsoft's DataContext appears to be a direct base class (it doesn't inherit from or implement anything more general).

If they don't inherit from Microsoft's DataContext, then the "work around" is to copy-paste the DataContext code from CSLA, change the generic constraint to be their context type and basically create a different manager class.

Copyright (c) Marimer LLC