コード例 #1
0
        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));
        }
コード例 #2
0
 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);
 }