tracker-enabled-dbcontext
tracker-enabled-dbcontext copied to clipboard
Raise exception when an entity has no key, and only has a foreign key to it's parent
hi dear @bilal-fazlani
I was faced with a problem.
in this case I get an exceprion:
public class Student
{
public int Id{get; set;}
}
public class StudentAddress
{
[Key]
public int StudentId{get;set;}
public string Address{get;set;}
}
when I want to save StudentAddress, because can't find primary key
What is the exception?
stacktrace ?