fullstackhero / blazor-starter-kit

Clean Architecture Template for Blazor WebAssembly Built with MudBlazor Components.
MIT License
3.5k stars 737 forks source link

Passing TId into UnitofWork forcing us to use same type of TId for all domain entities #400

Open mohammedali-vv opened 2 years ago

mohammedali-vv commented 2 years ago

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.