Beispiel #1
0
        private Tuple <EntityKey, EntityKey> ToEntityKeys(KeyMapping keyMapping, MetadataStore metadataStore)
        {
            var serverTypeInfo       = TypeNameInfo.FromClrTypeName(keyMapping.EntityTypeName);
            var clientEntityTypeName = serverTypeInfo.ToClient(metadataStore).StructuralTypeName;
            var et     = metadataStore.GetEntityType(clientEntityTypeName);
            var oldKey = new EntityKey(et, keyMapping.TempValue);
            var newKey = new EntityKey(et, keyMapping.RealValue);

            return(Tuple.Create(oldKey, newKey));
        }
 private Tuple<EntityKey, EntityKey> ToEntityKeys(KeyMapping keyMapping, MetadataStore metadataStore) {
   var serverTypeInfo = TypeNameInfo.FromClrTypeName(keyMapping.EntityTypeName);
   var clientEntityTypeName = serverTypeInfo.ToClient(metadataStore).StructuralTypeName;
   var et = metadataStore.GetEntityType(clientEntityTypeName);
   var oldKey = new EntityKey(et, keyMapping.TempValue);
   var newKey = new EntityKey(et, keyMapping.RealValue);
   return Tuple.Create(oldKey, newKey);
 }