entity framework question...

  • Thread starter Thread starter Richard U
  • Start date Start date
R

Richard U

hey guys... maybe anyone clear this up... i am playing around with mvc3 , more specifically db initializer... so ive created my initializer calss, andadded the code to execute the initializer in application_start... then changed one of the models... and change the items added in the seed function but i am getting an invalid column name exception... can anyone help, i can pastebin if required...
 
hey guys... maybe anyone clear this up... i am playing around with
mvc3 , more specifically db initializer... so ive created my
initializer calss, and added the code to execute the initializer in
application_start... then changed one of the models... and change the
items added in the seed function but i am getting an invalid column
name exception... can anyone help, i can pastebin if required...

Have you regenerated code after changing model?

Arne
 
i did go project build...
would that not recompile the model?

this is the error i am getting now "Model compatibility cannot be checked because the database does not contain model metadata. Ensure that IncludeMetadataConvention has been added to the DbModelBuilder conventions." ... i am playing around with EF Code first... thanks
 
Back
Top