Q:

How map Two List properties of same class in Entity framefork 6

My Class is 
public class DocumentSale 
{
   public List<DocumentSale> FollowDocuments {get; set;}
   public List<DocumentSale> BaseDocuments {get; set;}
}

How to map it on entity framework? I get an error

"FK_dbo.DocumentSaleDocumentSales_public.saledocument_DocumentSa" for relation "DocumentSaleDocumentSales" already exists

My Database is postgres 9.4.9

A:

That is what I was needed:
public class DocumentSale 
{
   public List<DocumentSale> FollowDocuments {get; set;}
   public List<DocumentSale> BaseDocuments {get; set;}
}

  modelBuilder.Entity<DocumentSale>()
        .HasMany<DocumentSale>(c => c.baseDocuments)
        .WithMany(c => c.followUpDocuments)
        .Map(
        cs =>
            {
                cs.MapLeftKey("followdocid");
                cs.MapRightKey("basedocid");
                cs.ToTable("basefollow");
            }
        );

