0

I am doing model first development. Need a way to extend Entity Framework so that I can specıify displayName from the designer

Yuliam Chandra
  • 14,494
  • 12
  • 52
  • 67
tsadigov
  • 25
  • 6
  • What do you mean by display name? – Yuliam Chandra Jul 18 '14 at 12:55
  • possible duplicate of [DisplayName on Model that use Entity Framework](http://stackoverflow.com/questions/5889349/displayname-on-model-that-use-entity-framework) – Pragmateek Jul 18 '14 at 13:28
  • I think I will start from here blogs.msdn.com/b/craigl/archive/2010/01/14/extensibility-example-adding-custom-namespaces-in-your-code.aspx The bad thing is I could not find the starter kit – tsadigov Jul 18 '14 at 14:51
  • [Yuliam Chandra] you can think of it as displayNameAttribute but it should be stored in edmx. – tsadigov Jul 18 '14 at 14:56
  • [Pragmateek] the question you have mentioned is not the same. The solution there is to use buddy classes for metadata. In my case adding those codes into code manually is not an option, storing additional data in edmx model is a requirement – tsadigov Jul 18 '14 at 15:00

1 Answers1

0

What I have done for now is I use custom metadataProvider and use the property I have added to the model. May there is some better way, but this worked for me.

tsadigov
  • 25
  • 6