Hi,
I finally switched to EF5 DbMigrations and I really like it!
But I have a question about data modifications:
Data seeding is for seeding default values but how I should deal with data modifications like splitting the User.Name into User.Firstname and User.Lastname?
For me this is not part of data seeding, it is a migration step as schema changes.
But is it ok to use the DataContext during the Up/Down methods?
I know I could use the Sql() method but to be honest I switched to DbMigrations to don't write Sql anymore.
Could you give me your advice about that?
How do you solve that problem in your migrations?
Cheers
I finally switched to EF5 DbMigrations and I really like it!
But I have a question about data modifications:
Data seeding is for seeding default values but how I should deal with data modifications like splitting the User.Name into User.Firstname and User.Lastname?
For me this is not part of data seeding, it is a migration step as schema changes.
But is it ok to use the DataContext during the Up/Down methods?
I know I could use the Sql() method but to be honest I switched to DbMigrations to don't write Sql anymore.
Could you give me your advice about that?
How do you solve that problem in your migrations?
Cheers