It is not possible to use unitofwork for more than one entity having different types of primary keys (like int and long).
To reproduce:
Change the type of primary key of the product entity from int to long and you will get an error in GetDashboardDataQuery.
It is not possible to use unitofwork for more than one entity having different types of primary keys (like int and long). To reproduce: Change the type of primary key of the product entity from int to long and you will get an error in GetDashboardDataQuery.