Not too sure if that was the right way to word the question but i'm currently getting my head around MVC.
I have multiple Entity Data Models(I'm not sure this is best practice, but it seemed logical), however only one is working as its presenting the error of
'Asaurus.Models.ConnectionString' already defines a member called 'ConnectionString' with the same parameter types..."
These are the two classes
1:
public partial class ConnectionString : DbContext
{
public ConnectionString()
: base("name=ConnectionString")
{
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public virtual DbSet<TABLE1> TABLE1 { get; set; }
}
}
2:
public partial class ConnectionString : DbContext
{
public ConnectionString()
: base("name=ConnectionString")
{
}
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
throw new UnintentionalCodeFirstException();
}
public virtual DbSet<TABLE2> TABLE2 { get; set; }
}
}
Is it possible to avoid this conflict?
Thanks in advance, James