title: My Web Api Rest client is forcing me to reference Entity Framework
body: <p>I have a MVC Api endpoint, and I am creating a api rest client project also that wrap the api endpoint service.</p>
  
  <p>I am using Entity framework, code first.</p>
  
  <p>My web api project looks like:</p>
  
  <pre><code>project-mvc
  project-core  (this contains entity framework, models, etc.)
  </code></pre>
  
  <p>Now when I create my rest api client project:</p>
  
  <pre><code>project-api-client
  </code></pre>
  
  <p>The problem is, I have to reference the project-core because it contains the models, but then I also get entity framework since it is a dependancy.</p>
  
  <p>So I tried creating a seperate models project:</p>
  
  <pre><code>project-models
  </code></pre>
  
  <p>But it seems it still has to reference EntityFramework, otherwise my attributes don't seem to work  e.g.:</p>
  
  <pre><code>public class Something
  {
  
          [Key]
          [Column("Something_ID")]
          public int Id { get; set; }
  
      ....
  }
  </code></pre>
  
  <p>I thought all you needed was  using System.ComponentModel.DataAnnotations but I was forced to bring in EntityFramwork.</p>
  
  <p>Am I doing this wrong?</p>