Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #Most important error in EF code first
  2.  
  3. 1. Introducing FOREIGN KEY constraint 'FK_dbo.xxx_dbo.Employee_xxx' on table 'xxx' may cause cycles or multiple cascade paths. Specify ON DELETE NO ACTION or ON UPDATE NO ACTION, or modify other FOREIGN KEY constraints.
  4. Could not create constraint. See previous errors.
  5.  
  6. if you get this error add ? on that property
  7. ```
  8. public int? StudentID { get; set; }
  9. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement