I believe what you are showing in the screenshot is not an item from StorageMappingItemCollection but a reference from an item in the StorageMappingItemCollection. The item in the StorageMappingItemCollection would be StorageEntityContainerMapping. It contains information about a mapping between CSpace EntityContainer and SSpace EntityContainer. Since the type is internal you cannot access the properties. However the references point to containers that are in other item collections that are public. If you need a CSpace entity container you can get it from EdmItemCollection and if you need a SSpace EntityContainer you can get it using StoreItemCollection. Since you are talking about bulk operations in the database I assume you want the container from StoreItemCollection. The problem is that since mapping layer is internal you don't know how tables and columns (SSpace) relate to Entities and properties (CSpace) given that EF supports different mapping strategies (TPC, TPH, TPT, EntitySplitting)
↧