InverseProperty records not being savedin the database

In the code-first approach you can easily save object across multiple tables. This is great. However, today I tried saving an object with a set of other records:

In my controller I had simply:

However, the Items where not actually saved in the database. I just changed IEnumerbale to List and it worked 😀

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box