Skip to content
Advertisement

Convert SQL query to Entity Framework which used AggregateFunctions and Where clause

How can I convert this query to Entity Framework?

SQL query:

Entity:

UserRepository:

I have to sort students for their general point (DiamondCount+CoinCount). But I can’t send LINQ query by using Entity Framework. How can I do this?

Advertisement

Answer

Not tested but it should work:

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