Hi Alexander,
I'm evaluating the data model disigners. I added a Datamodel consiting of a single entity to my business objects class library.
I noticed that the generated class doesn't include any kind of mapping information (attributes).
I'm trying to use this genereted class within a system that was already working with a forward mapped class. So, I created a new dll for it, which I replaced in my solution. In other words, I removed my original BusinessOjects project and added a new one instead, containing my Domain Model.
In theory, everithing should work normally. But when I try to run my application the following error occurs when trying to instantiate the database object:
The assembly 'BusinessObjects' does not have a config file with an openaccess node.
And it's true... indeed. The generated config file contains just this:
<?
xml version="1.0" encoding="utf-8"?>
<
configuration>
<
connectionStrings>
<
add name="WorkHoursEntityDiagrams" connectionString="data source=SANDIA\SQLEXPRESS;initial catalog=WorkHours;integrated security=True" providerName="System.Data.SqlClient" />
</
connectionStrings>
</
configuration>
The code I'm using to get the database object is as follows:
Telerik.OpenAccess.
Database.Get("WorkHoursEntityDiagrams");
Even I was not convinced, I supposed I had to enable the project to get the required openaccess nodes inside the config file. But when I tryed that approach it failed telling me that I cannot enable a proyect that already contains a domain model.
So, I seem to be in a dead-end street. I can't 'foward map' my entity nor I can run my application.
What may I be doing wrong here?
Best wishes,
Gonzalo