View Model represents data you want to have displayed in your view. To overcome these issues, my approach is based on ViewModel entity. we don't have any track about Many to Many relationship !!! View Model Approach Now you can run the application and browse the pages. We can expand it and expand JobPortal.tt. In the Models folder we have JobPortal.edmx file, that is the phisical representation for our model. If we had a payload, we shouldn't have the many to many relationship but we should have a fourth entity with one-to-many relationship to JobPost and one to JobTag. This is because our link table it has no payload ( that is it has no scalar property ). Note that the link table JobPost_JobTag is not represented as an entity in our mode. Note that we have the one-to-many relationship between Employer and JobPost, and the many-to-many relationship between JobPost and JobTag. Now you see the Entity Diagram of the generated model Check the option "Pluralize or Singularize generated object names" and let other settings as default.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |