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
Post a Comment