beginner question: how to consume service in BLL

2 posts, 0 answers
  1. sf
    sf avatar
    103 posts
    Member since:
    Apr 2009

    Posted 19 Jul 2012 Link to this post

    hi
    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

  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 23 Jul 2012 Link to this post

    Hello sf,

     Did you have the chance to look into our online documentation? As you can see there are some great getting started examples that explain how to create a complete working solution in a step by step fashion.
    Also a great starters place would be our software development kit that provides working examples as well as documentation and articles for them. 

    All the best,
    Petar
    the Telerik team
    OpenAccess ORM Q2'12 Now Available! Get your hands on all the new stuff.
  3. DevCraft banner
Back to Top