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

New Post: Creating custom attributes and acting on them in migrations

$
0
0

Hi ,

Pretty new to codeplex and the EF code but looking through and once of the first things I'd like to do is being able to add a few attributes that I can use on code first entities and hopefully have them picked up and do something during auto migrations.

One example I've seen talked about is the concept of an Index attribute that could be added to properties in the same way a Key attribute is to have the migration automatically handle the creation of an index for that column. But I'd also be interested in knowing if it is possible to customise what is generated for existing migrations.

Does EF support the idea of extending auto migration operations? Or has anyone already looked at this who could perhaps pass on some pointers as where to start looking.

Thanks,

Mark


Viewing all articles
Browse latest Browse all 1793

Trending Articles



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