I am working with Entity Framework Code First.
I have an Entity Called Notes
I also have other Entities such as BusinessPartners Opportunities WorkOrders
All of these entities may have notes.
What is the best way to model this
1.) in the notes table have optional foreign keys to Business partners, Opportunities, and workorders. Then just set the optional key to which the note is related
2.) have intermediate tables such as BusinessPartnerNotes, with two field BusinessPartnerId and NoteId
It should be mentioned that a note is never going to be related to two entities at the same time.
Any help or suggestions would be appreciated.