private Tuple <EntityKey, EntityKey> ToEntityKeys(KeyMapping keyMapping) { var entityTypeName = NormalizeEntityTypeName(keyMapping.EntityTypeName); var et = MetadataStore.Instance.GetEntityType(entityTypeName); 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) { var entityTypeName = NormalizeEntityTypeName(keyMapping.EntityTypeName); var et = MetadataStore.Instance.GetEntityType(entityTypeName); var oldKey = new EntityKey(et, keyMapping.TempValue); var newKey = new EntityKey(et, keyMapping.RealValue); return Tuple.Create(oldKey, newKey); }