This question is locked. New answers and comments are not allowed.
We were using ReverseMapping and the ScopeProvider with a ScopeFactory, according to the best practice.
Now we are upgrading to use the Domain Model, and we're having trouble with this error:
"Telerik.OpenAccess.RT.sql.SQLException: Invalid object name 'voa_keygen'."
We read through the other forum posts on this issue, but its not helped.
http://www.telerik.com/community/forums/orm/databases/invalid-object-name-voa-keygen.aspx
http://blogs.telerik.com/blogs/posts/10-07-16/openaccess_orm_upgrade_model_tool.aspx
http://www.telerik.com/help/openaccess-orm/getting-started-root-migration-tool-use-migration-tool.html
I added the call to AdjustForDynamicLoad and also added the 'references' section to the config file manually, but that didn't help either.
Do you need any more info?
Now we are upgrading to use the Domain Model, and we're having trouble with this error:
"Telerik.OpenAccess.RT.sql.SQLException: Invalid object name 'voa_keygen'."
We read through the other forum posts on this issue, but its not helped.
http://www.telerik.com/community/forums/orm/databases/invalid-object-name-voa-keygen.aspx
http://blogs.telerik.com/blogs/posts/10-07-16/openaccess_orm_upgrade_model_tool.aspx
http://www.telerik.com/help/openaccess-orm/getting-started-root-migration-tool-use-migration-tool.html
I added the call to AdjustForDynamicLoad and also added the 'references' section to the config file manually, but that didn't help either.
<
connectionStrings
>
<
add
name
=
"ColonyDB"
connectionString
=
"data source=dev-a;initial catalog=ColonyDB;persist security info=True;user id=DB;password=db"
providerName
=
"System.Data.SqlClient"
/>
<
add
name
=
"EntityDiagrams"
connectionString
=
"data source=dev-a;initial catalog=ColonyDB;persist security info=True;user id=DB;password=db"
providerName
=
"System.Data.SqlClient"
/>
</
connectionStrings
>
<
openaccess
>
<
references
>
<
reference assemblyname="BusinessObjects" configrequired="True"/>
<
reference
assemblyname
=
"EntityDiagrams"
configrequired
=
"True"
/>
</
references
>
</
openaccess
>
</
configuration
>
static public Database Database()
{
if( theObjectScopeProvider1 == null )
theObjectScopeProvider1 = new IColonyDB();
if (theObjectScopeProvider1.myDatabase == null) {
EntityDiagrams context = new EntityDiagrams();
MetadataContainer metadata = context.Metadata;
BackendConfiguration backendConfiguration = EntityDiagrams.GetBackendConfiguration();
context.Dispose();
theObjectScopeProvider1.myDatabase = Telerik.OpenAccess.Database.Get("ColonyDB", backendConfiguration, metadata);
}
return theObjectScopeProvider1.myDatabase;
}
Do you need any more info?