I have the following tables in my database

Notes Table:

* NoteID
* Description
* TaskID (Can be NULL)

Task Table:

* TaskID
* TaskType
* TaskDescription

I an using Entity Framework 5.0 Database First approach.

In some cases there will be notes which linked to a single task but there will be cases that note are standalone that means that they not linked to single task.

My question is how do i need to configure the edmx (model) file so when i am asking for a single task he will give me the associated noted?

I think it something that i need to configure the mapping no?