Skip to content
Advertisement

Custom select Entity Framework

I want to perform a custom select with Entity Framwork and can not make it good would you help me to figure this SQL select with Entity Framework

Advertisement

Answer

Based on the above query I’m prepared for some examples.

Very first you need to create two classes for the retrieving the data

  • DepartmentModel for select specific data
  • DepartmentStatusfor actually what you want for that.

Model class

Entity Framework query

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement