-
Jan 14th, 2015, 09:12 PM
#1
Thread Starter
Frenzied Member
Auto generated data layer classes from Tables.
Is there a way to do this? Like have VS generate properties and Save(Insert/update) and delete sub/functions?
I've always just manually written them, but if there is a better way, I would like to know.
Or just a good site or example.
Thanks,
Justin
-
Jan 14th, 2015, 09:25 PM
#2
Re: Auto generated data layer classes from Tables.
You can use the Data Source Wizard and VS can generate at least either a typed DataSet, complete with table adapters, or an Entity Framework data model. EF has various options for creating a database from entity classes or entity classes from a database. You also have the option of LINQ to SQL if you're using SQL Server. I'm not sure whether that integrates with the same wizard but you can add an L2S data model via the Add New Item dialogue.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|