Using the following JSON object I want to create models in EF and their navigation properties also need model.Builder Entity
Also need information on one to many relation using the json specified below and using migrations create database tables.
[{
"Title": "AC",
"IconClass": "ac",
"Departments": "Housekeeping,Maintenance",
"Status": "NotInOrder",
"Parts": [{
"Title": "Power",
"IconClass": "power",
"Departments": "Housekeeping,Maintenance",
"Status": "NotInOrder",
"DependentUpon": "",
"Id": null
}, {
"Title": "Remote",
"IconClass": "remote",
"Departments": "Housekeeping,Maintenance",
"Status": "CleanedMaintained",
"DependentUpon": "Power",
"Id": null
}, {
"Title": "Cooling",
"IconClass": "cooling",
"Departments": "Housekeeping,Maintenance",
"Status": "CleanedMaintained",
"DependentUpon": "Remote",
"Id": null
}],
},
{
"Title": "TV",
"IconClass": "tv",
"Departments": "Housekeeping,Maintenance",
"Status": "CleanedMaintained",
"Parts": [{
"Title": "Power",
"IconClass": "power",
"Departments": "Housekeeping,Maintenance",
"Status": "CleanedMaintained",
"DependentUpon": "",
"Id": null
},
{
"Title": "TV - Remote",
"IconClass": "remote",
"Departments": "Housekeeping,Maintenance",
"Status": "CleanedMaintained",
"DependentUpon": "Power",
"Id": null
}]
]