Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to add custom user fields in my application (first name, last name, etc.). I used this, but getting errors. In a comment under the entry, I conclude that I have a newer version of EF. Does anyone know how to add these fields to the user in my version EF6?

Errors:

1

The type or namespace name 'DbMigrationConfiguration' could not be found (are you missing a using directive or an assembly reference?)

2

The type 'xxx.Models.MigrationConfiguration' cannot be used as type parameter 'TMigrationsConfiguration' in the generic type or method 'System.Data.Entity.MigrateDatabaseToLatestVersion<TContext,TMigrationsConfiguration>'. There is no implicit reference conversion from 'xxx.Models.MigrationConfiguration' to 'System.Data.Entity.Migrations.DbMigrationsConfiguration<xxx.Models.UsersContext>'.

3

The name 'WebSecurity' does not exist in the current context

4

'xxx.Models.MigrationConfiguration' does not contain a definition for 'AutomaticMigrationsEnabled' and no extension method 'AutomaticMigrationsEnabled' accepting a first argument of type 'xxx.Models.MigrationConfiguration' could be found (are you missing a using directive or an assembly reference?)

PS: I have data in my data base outwardly according to this article.

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.