Why is SqlMetal messing up the Association names. For e.g. in my 'TextMessage' table i have two columns referencing the 'ApplicationUser' table. 'SenderUserId' and 'RecipientUserId'
When I run SqlMetal and look at my 'ApplicationUser' class
For 'RecipientUserId' it generates:
[Association(Name="FK__TextMessa__Recip__72910220", Storage="_TextMessages", ThisKey="Id", OtherKey="RecipientUserId", DeleteRule="NO ACTION")]
     public EntitySet<TextMessage> TextMessages
     {
      get
      {
       return this._TextMessages;
      }
      set
      {
       this._TextMessages.Assign(value);
      }
     }
and for 'SenderUserId' it generates this garbage named property:
[Association(Name="FK__TextMessa__Sende__73852659", Storage="__TextMessa__Sende__73852659s", ThisKey="Id", OtherKey="SenderUserId", DeleteRule="NO ACTION")]
     public EntitySet<TextMessage> _TextMessa__Sende__73852659s
     {
      get
      {
       return this.@__TextMessa__Sende__73852659s;
      }
      set
      {
       this.@__TextMessa__Sende__73852659s.Assign(value);
      }
     }
How can I remedy this? This is unusable. Is there a better way to generate Linq To Sql Code???