Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise exception when an entity has no key, and only has a foreign key to it's parent #123

Open
husseinjahan opened this issue Aug 30, 2016 · 1 comment

Comments

@husseinjahan
Copy link

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

@bilal-fazlani
Copy link
Owner

What is the exception?

stacktrace ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants