Results 1 to 2 of 2

Thread: Auto generated data layer classes from Tables.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Feb 2008
    Location
    Texas
    Posts
    1,288

    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
    You down with OOP? Yeah you know me!
    MCAD and MCMICKEYMOUSE (vb.net)

    ----

    If it even kinda helps... rate it : )

    Edit a Multi-page .tif file and save.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,297

    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
  •  



Click Here to Expand Forum to Full Width