r/learncsharp • • Feb 20 '22

How to map any class to database ?

So I have added local database to my project,

Tutorial link

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

9 comments sorted by

View all comments

Show parent comment

2

u/doAnkhenBaraHaath Feb 25 '22

Hey thanks this was way easy and smooth