I am new to ORM and WCF implementation, need some guide on how-to.
I have a couple of projects in my solution:
- MyProj_Models, which holds the ORM entity model called MyModel.rlinq
- MyProj_Service , an WCF service application which should hold all business logics for the solution. (I want to add service layer for all business logics so that the methods are accessed by the application through service instead of traditional .dlls)
- MyProj_App, an web application, which is the startup project of the solution.
In the "Add OpenAccess Service Wizard" popup I:
selected the MyModel.rlinq as context
In section "Service Code Base" I:
selected MyProj_Service as "Host in Project"
selected Create Project as Service Code Base and set the new project name to be "MyProj_ServiceLibrary".
The wizard then generated MyModelService.svc.cs in MyProj_ServiceLibrary. It also added reference to MyProj_ServiceLibrary in MyProj_Sercice, and added MyModelService.svc in MyProj_Service project.
Now I need to write all business logics inside MyProj_Service project by referencing MyProj_ServiceLibrary, but I am stuck as I couldn't find any tutorials to learn how to proceed.
Am I doing something fundamentally wrong or are there any tutorials which I can learn how to proceed?
thanks in advance