locked
DataAnnotations tha I would like RRS feed

  • Question

  • I think that could be useful to have DataAnnotations for index creation the same way we have the key

    And also would be nice to add a relation and describe if it the FK shoud have a delete cascade or not, and if it is lazy or eager loading by default

     

    Monday, February 14, 2011 1:29 PM

Answers

  • Hi,

    Thank you for this feedback!

    Code First doesn't support index creation at this stage but it is a common request and we agree a data annotation would be a nice way to specify this.

    We'll take a look at adding the others in the future but it won't be for the upcoming go-live release.

    ~Rowan

    Monday, February 21, 2011 5:35 PM
    Moderator