This question is locked. New answers and comments are not allowed.
I am in the process of creating a security framework that resides in its own assembly with its own FluentMetatdataSource. I would like to be able to register the framework with an existing database context, but am unable to determine how / if there is a way to do this...
Currently, the OpenAccessContext only supports a single datasource (as far as I can tell):
Currently, the OpenAccessContext only supports a single datasource (as far as I can tell):
var metadata1 =
new
AppFluentDataSource();
var metadata2 =
new
SecurityMetaDataSource();
var context =
new
OpenAccessContext(_connectionString, configuration, metadata1);
Currently, I can only reference the object mappings defined in the registered datasource - the objects in the non-registered datasource throw an object reference error:
at Telerik.OpenAccess.SPI.Backends.ThrowException(Exception e)
at OpenAccessRuntime.ExceptionWrapper.Throw()
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.handleException(Exception x)
at OpenAccessRuntime.DataObjects.OpenAccessPersistenceManagerImp.makePersistent(Object o)
at OpenAccessRuntime.DataObjects.UnsynchronizedPMProxy.makePersistent(Object o)
at OpenAccessRuntime.ObjectScope.Add(Object pc)
at Telerik.OpenAccess.OpenAccessContextBase.Add(Object entity)
Am I missing something?