I have an n-tier web application. There's a Model class library containing the Domain Model created with the Visual Entity Designer. Then there's a Service class library responsible for direct communication with the Model (in this case Model == Repository). And there's my web application project calling the service. When my web application tries to query the database through the service I get an error:
Message: Sys.WebForms.PageRequestManagerServerErrorException: No persistent class could be found.
To define persistent classes use the [Persistent] attribute at the class level.
If multiple projects are used additional references must be made in the configuration file.
To update the required references use 'Update Config References' from the OpenAccess menu.
When using the Visual Entity Designer you the 'Update Config References' menu option is disabled. As are most of the options from the OpenAccess menu. What references and/or App/Web.config additions have to be made in order to make my simple n-tier model to get to work?
- Model class library project containing the Domain Model created with the Visual Entity Designer
- Service class library project referencing the Model class and calling the Domain Model methods ('GetAll', 'Save', 'Delete', etc.)
- Web application project referencing the Service class and using the service to query the database behind the Domain Model
Please advise. I can't find any examples or forum topics concerning n-tier design when using the Visual Entity Designer.