Note that there are some explanatory texts on larger screens.

plurals
  1. POExpose EF project to WCF service
    primarykey
    data
    text
    <p>I have made a complex solution using EF5 (Lets call it EF5), this solution works perfectly fine and has a Logic.cs file,lies at the app_code, which has multiple functions that access , control and modify this solution, So far so good.</p> <p>I would like that my business' clients to access these function and I'd like to expose these functions by using WCF.</p> <p>The steps I did are the following.</p> <ol> <li>Adding WCF project to the solution where the EF5 project is.</li> <li>Writing "OperationContract"s for each of the functions I'd like to expose to my client.</li> <li>Try implementing each of the functions by calling the EF5 functions.</li> </ol> <p>The problem lies at the implementation, VS fails to recognize the logic.cs file , and therefore I cannot call the functions and expose my EF5 project to my clients.</p> <p>I am new with WCF, obviously I'm doing something wrong here.</p> <p>My question is, how do I expose EF5 project's functions, that lies in a .cs class , to WCF?</p> <p>I believe that the major mistake that I made was that I didn't make a WCF project and added EF5 item to it, but I'm not entirely sure.</p> <p>Here are the screenshots that displays my steps to add the EF5 Reference to the WCF project.</p> <p><img src="https://i.stack.imgur.com/cMrIT.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/EPN6S.png" alt="enter image description here"></p> <p><img src="https://i.stack.imgur.com/WZISZ.png" alt="enter image description here"></p> <p>Thanks </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload