Results 1 to 2 of 2

Thread: [RESOLVED] how to add new model class

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 2007

    Resolved [RESOLVED] how to add new model class

    when I added entityfarme work model in mvc Application ultimately it added respected model classes for each table in database .and it added commented line in each class like that

    // <auto-generated>

    // This code was generated from a template.


    // Manual changes to this file may cause unexpected behavior in your application.

    // Manual changes to this file will be overwritten if the code is regenerated.

    // </auto-generated>

    Now the problem is if I added another table in database ..and wanted to create respective class in same application ..should I drop .edmx file and recreate EF model so that it cover added table in project ..??
    There is no achievement without goals

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Sydney, Australia

    Re: how to add new model class

    If you change the database, all you have to do is open the model in the designer, right-click on the background area and select the option to update the model from the database.

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