c# - Entity Framework - Version Property Name -


i'm searching getting concurrency fixed property name @ runtime through objectcontext don't find property or method able give me information.

is there way in order entity property name setted "concurrencymode=fixed"?

you can list of these properties querying conceptual model:

context.metadataworkspace.getitemcollection(dataspace.cspace)     .oftype<entitytype>()     .selectmany(entitytype => entitytype.properties)     .oftype<edmproperty>()     .where(ep => ep.typeusage.facets.any(f => f.name == "concurrencymode"              && (edmconcurrencymode)f.value == edmconcurrencymode.fixed))     .select(ep => new                      {                          type = ep.declaringtype.name,                         property = ep.name,                         datetype = ep.typeusage.edmtype.name                      }) 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -