public Proxy.IMetadataSet Add(Proxy.IRelationship relationship, Proxy.ConnectionType connectionType, string name, string value, ref TransactionFramework.TransactionChain chain)
        {
            Proxy.IMetadataSet newMetadataSet = ParentNode.Proxy.Metadata.Add(relationship, connectionType, name, value, ref chain);

            if (!Metadata.ContainsKey(name))
            {
                IMetadata newMetadata = ParentNode.ViewModelMetadataFactory.CreateMetadata(newMetadataSet);

                Add(name, newMetadata);
                return(newMetadata.MetadataSet);
            }
            return(newMetadataSet);
        }
Beispiel #2
0
 IMetadata IViewModelMetadataFactory.CreateMetadata(TNSProxy.IMetadataSet newMetadataSet)
 {
     return(new Metadata(newMetadataSet, MapManager));
 }