"System.Data.SqlClient.
A valid relationship to the Client entity model could not be determined. In our case, there were duplicate virtual references in the Client model (table) to the Document model (table).
The Document model had the following properties:
public Nullable
public virtual Client Client { get; set; }
However, the Client model had the following duplicate properties:
public virtual ICollection
public virtual ICollection
Removal of the duplicate eliminated the exception message.
No comments:
Post a Comment