title: Entity Framework: Ambiguous match found
body: <p>I am using Entity Framework 6.1 in asp.net webform project. When I try to add new object into projects, I am getting <strong>Ambiguous match found</strong> exception.
  I am using database first approach. I do not any manipulation in created models. I have read some questions about that problem. General cause is same named properties and navigation in class. I did not found any same named property.</p>
  
  <p>Can you tell me what i missed?</p>
  
  <p>Thank you</p>
  
  <p>Code:</p>
  
  <pre><code>projects m_NewProject = new projects();
  decimal m_CompanyRef = MemberHelperC.getUser().CompanyRef;
  DateTime m_EndDate = GeneralHelperC.getCompanyDateTime().AddDays(5);
  DateTime m_StartDate = GeneralHelperC.getCompanyDateTime();
  customers m_Customer = myEntity.customers.Where(xXx =&gt; xXx.CompanyRef == m_CompanyRef).FirstOrDefault();
  m_NewProject.ProjectLeadRef = MemberHelperC.getUserID();
  m_NewProject.ProjectName = m_ProjectName;
  m_NewProject.ProjectStatus = Convert.ToByte(1);
  m_NewProject.SourceLangRef = Convert.ToDecimal(comboSourceLang.SelectedValue);
  m_NewProject.TargetLangRef = Convert.ToDecimal(comboTargetLang.SelectedValue);
  m_NewProject.DomainRef = Convert.ToDecimal(1);
  m_NewProject.ProjectYear = GeneralHelperC.getCompanyDateTime()/*DateTime.Now*/.Year;
  m_NewProject.EndDate = m_EndDate;
  m_NewProject.StartDate = m_StartDate;
  m_NewProject.TaskStepNameRef = m_TaskStepNameID;
  m_NewProject.CustomerRef = Convert.ToDecimal(m_Customer.RID);
  Random m_Random = new Random();
  m_NewProject.ProjectUniqueID = m_Random.Next(0, 99999999);
  m_NewProject.ProjectTBX = m_Dictionary.RID;
  myEntity.projects.Add(m_NewProject);//exception occur this method
  myEntity.SaveChanges();
  </code></pre>
  
  <p>Object Class:</p>
  
  <pre><code>public partial class projects
  {
      public projects()
      {
          this.projectnotes = new HashSet&lt;projectnotes&gt;();
          this.projectpriceoffers = new HashSet&lt;projectpriceoffers&gt;();
          this.projectreferencedoc = new HashSet&lt;projectreferencedoc&gt;();
          this.projects1 = new HashSet&lt;projects&gt;();
          this.taskstepexceptions = new HashSet&lt;taskstepexceptions&gt;();
          this.tbxrelation = new HashSet&lt;tbxrelation&gt;();
          this.tmproject = new HashSet&lt;tmproject&gt;();
          this.tmrelation = new HashSet&lt;tmrelation&gt;();
          this.wizardprojecttasks = new HashSet&lt;wizardprojecttasks&gt;();
          this.works = new HashSet&lt;works&gt;();
      }
  
      public decimal RID { get; set; }
      public string ProjectName { get; set; }
      public decimal ProjectStatus { get; set; }
      public decimal ProjectLeadRef { get; set; }
      public System.DateTime EndDate { get; set; }
      public System.DateTime StartDate { get; set; }
      public int ProjectYear { get; set; }
      public int ProjectUniqueID { get; set; }
      public Nullable&lt;decimal&gt; ParentProjectRef { get; set; }
      public Nullable&lt;decimal&gt; TMXHeaderRef { get; set; }
      public decimal SourceLangRef { get; set; }
      public decimal TargetLangRef { get; set; }
      public decimal DomainRef { get; set; }
      public decimal TaskStepNameRef { get; set; }
      public Nullable&lt;decimal&gt; ProjectTBX { get; set; }
      public Nullable&lt;decimal&gt; CustomerRef { get; set; }
  
      public virtual customers customers { get; set; }
      public virtual domainname domainname { get; set; }
      public virtual language language { get; set; }
      public virtual language language1 { get; set; }
      public virtual ICollection&lt;projectnotes&gt; projectnotes { get; set; }
      public virtual ICollection&lt;projectpriceoffers&gt; projectpriceoffers { get; set; }
      public virtual ICollection&lt;projectreferencedoc&gt; projectreferencedoc { get; set; }
      public virtual ICollection&lt;projects&gt; projects1 { get; set; }
      public virtual projects projects2 { get; set; }
      public virtual projectstatus projectstatus1 { get; set; }
      public virtual tasknames tasknames { get; set; }
      public virtual tbxdictionary tbxdictionary { get; set; }
      public virtual tmxheaderinterface tmxheaderinterface { get; set; }
      public virtual users users { get; set; }
      public virtual ICollection&lt;taskstepexceptions&gt; taskstepexceptions { get; set; }
      public virtual ICollection&lt;tbxrelation&gt; tbxrelation { get; set; }
      public virtual ICollection&lt;tmproject&gt; tmproject { get; set; }
      public virtual ICollection&lt;tmrelation&gt; tmrelation { get; set; }
      public virtual ICollection&lt;wizardprojecttasks&gt; wizardprojecttasks { get; set; }
      public virtual ICollection&lt;works&gt; works { get; set; }
  }
  }
  </code></pre>