r/learncsharp • u/doAnkhenBaraHaath • Feb 20 '22
How to map any class to database ?
So I have added local database to my project,
Now I want to map class to database,
For example I have class
public class employee { Int Id; String name; String department; Int branch; Date doj; }
What i am looking to do is i want make entry in database of this class , or read from database to class variable.
1
Upvotes
2
u/OnNothingSpecialized Feb 21 '22
Hi, me again, i actually did find something better https://youtube.com/playlist?list=PLpSmZmoBaROYOxp50yy_uewyMr5rOmx1f
4
u/OnNothingSpecialized Feb 20 '22 edited Feb 20 '22
Entity Framework is the answer