Quantcast
Channel: entityframework Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1793

New Post: Data-Modifications during Migration

$
0
0
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

Viewing all articles
Browse latest Browse all 1793

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>