C#C
C#3y ago
9 replies
Drunkreaper

✅ How to make Get methods work with multiple data types

Currently making a beginner school database project with EF that just has to communicate with tables. What would be the best way to make these get methods work with multiple Models? Tried using generic types and object but I'm always getting conversion errors.
image.png
image.png
image.png
image.png
Was this page helpful?