Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generate classes from access database

Is there an easy way to generate classes in visual studio from an access database? Something similar to Entity Framework?

If not what would be the easiest way, I have multiple forms where all the code is written and I need to create classes.

like image 740
NewPassionnate Avatar asked Sep 04 '26 05:09

NewPassionnate


1 Answers

Sort of. The DataTableAdapter comes close. If you create a connection to the database, it's a drag-n-drop process to pull the tables you need into the design pane. From then on, all (and the associated queries you may create) are accessible as objects with strong typing and other features.

It is much less sophisticated than the EF but keeps you off the primitive SqlCommand stuff.

like image 195
Gustav Avatar answered Sep 05 '26 20:09

Gustav



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!