We are in the process of migrating our previous models (rlnq) to the the fluent code only model. Followed the instructions to do so and generate all code, etc.
After reading the documentation, there doesn't seem to be anything we need to do for multiple models / context and metadata to exist. They are currently in two seperate folders, but the same namespace
We have two seperate models, when building we are receiving the following error:
Error Found explicit primitive change to 'Name' which says that the old value 'DataDbContext' should be changed with 'RepositoryDbContext'. One can only add elements and not modify primitive properties of MetaItems.This has occurred on the MetaItem with name 'RepositoryDbContext' and type 'Telerik.OpenAccess.Metadata.MetadataContainer'
ExceptionString:
Telerik.OpenAccess.Exceptions.InvalidOperationException: Found explicit primitive change to 'Name' which says that the old value 'DataDbContext' should be changed with 'RepositoryDbContext'. One can only add elements and not modify primitive properties of MetaItems.This has occurred on the MetaItem with name 'RepositoryDbContext' and type 'Telerik.OpenAccess.Metadata.MetadataContainer'
at Telerik.OpenAccess.Metadata.AggregateChangeSetEntryVisitor.ThrowExplicitChangeFoundException(ChangeSetDetail detail, MetaItem item)
at Telerik.OpenAccess.Metadata.AggregateChangeSetEntryVisitor.CheckForNonDefaultOperation(ChangeSetDetail detail, MetaItem item)
at Telerik.OpenAccess.Metadata.AggregateChangeSetEntryVisitor.Visit(ChangeSetEntry changeSetEntry)
at Telerik.OpenAccess.Metadata.ChangeSetWorker.TraverseChangeSetEntry(ChangeSetEntry changeSetEntry, IChangeSetEntryVisitor visitor)
at Telerik.OpenAccess.Metadata.AggregateMetadataSource.ApplyExtender(MetadataContainer firstContainer, MetadataContainer secondContainer)
at Telerik.OpenAccess.Metadata.AggregateMetadataSource.CreateModel()
at Telerik.OpenAccess.Metadata.MetadataSource.GetModelCore(MetadataContainer old)
at Telerik.OpenAccess.Sdk.Enhancer.Enhancer.CrossDomainRunImpl(AssemblyLoader assemblyLoader)
at Telerik.OpenAccess.Sdk.Enhancer.EnhancerBase.CrossDomainRun()McMDataAccessE:\McM\McMDataAccess\obj\Debug\McMDataAccess.dll