Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does my WCF Service not use my Entity Model?
    primarykey
    data
    text
    <p>I got a problem on using WCF service and Entity Model with together. I have created an Entity Model from my existing database. This can be shown below;</p> <p><img src="https://i.stack.imgur.com/fr8hr.png" alt="enter image description here"></p> <p>There isn't any problem while using my classes in any console applicaton coming from "Entity Object Code Generator".</p> <p>Then, I created WCF Service with Interface Below:</p> <pre><code> [ServiceContract] public interface IAuthorServices { [OperationContract] [WebGet( UriTemplate="GetNews")] List&lt;Newspaper&gt; GetNews(); [OperationContract] [WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetAuthors")] List&lt;Author&gt; GetAuthors(); [OperationContract] [WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetAuthorTexts")] List&lt;AuthorText&gt; GetAuthorTexts(); [OperationContract] [WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetTodaysTexts")] List&lt;AuthorText&gt; GetTodaysTexts(); [OperationContract] [WebGet(BodyStyle = WebMessageBodyStyle.Bare, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json, UriTemplate = "GetExceptions")] List&lt;KoseYazilari.Exception&gt; GetExceptions(); } </code></pre> <p>However when I implement these methods in a service class and run my client application, I got an error like</p> <p><img src="https://i.stack.imgur.com/qQlqk.png" alt="enter image description here"></p> <p>How can I get rid of this problem?</p> <p>Regards, KEMAL</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.
 

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