title: Auto Generating partial classes
body: <p>This is my first time using EF in VS2012 as I have been using 2010 for up until now. I have added the entity framework model and it adds 2 files with the extension .tt which I am sure was not present in VS2010. Under one of these it generates partial classes to match the entities. However I already have these partial classes in another manually created folder called Entites under the root of my app. This causes an issue on build as they conflict...</p>
  
  <p>How do I either either stop them autogenerating or how do I make them play nice with my manually created partial classes? It is incredibly annoying that VS2012 does this without asking as it breaks my code!</p>
  
  <p>Example of Auto Generated class</p>
  
  <pre><code>namespace StatisticsServer
  {
      using System;
      using System.Collections.Generic;
  
      public partial class Statistic
      {
          public int StatID { get; set; }
          public int CategoryID { get; set; }
          public int FranchiseID { get; set; }
          public double StatValue { get; set; }
      }
  }
  </code></pre>
  
  <p>Example of Manually created class</p>
  
  <pre><code>namespace StatisticsServer.Entities
  {
      public partial class Statistic
      {
          public static List&lt;Statistic&gt; GetStatisticsSet(int categoryID)
          {
              List&lt;Statistic&gt; statSet = new List&lt;Statistic&gt;();
              using (var context = new StatisticsTestEntities())
              {
                  statSet = (from s in context.Statistics where s.CategoryID == categoryID select s).ToList();
              }
              return statSet;
          }
      }
  }
  </code></pre>