C
C#17mo ago
.perceptron

❔ How do I access Category Name ?

I have a model with id , category name , parent id . Parent id is equal to prebuilt id. How can I access category name from parent id? C# linq
3 Replies
Denis
Denis17mo ago
This is unclear. Is this model representing an ef core database entity? What is prebuilt id? What is the structure of your model hierarchy
Angius
Angius17mo ago
If it's EF, it'd be best to use navigation properties, not just plain FKs
Accord
Accord17mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.