Inheritance: ICompositePropertyMapVisitor
Exemple #1
0
        public CompositePropertyMap(IEnumerable <ICompositePropertyFragmentMap> propertyMaps)
        {
            var propertyMapVisitor = new CompositePropertyMapVisitor();

            propertyMaps.ForEach(fragment => fragment.Accept(propertyMapVisitor));
            ContractType           = propertyMapVisitor.ContractType;
            GetPropertyFragmentMap = propertyMapVisitor.GetPropertyFragmentMap;
            SetPropertyFragmentMap = propertyMapVisitor.SetPropertyFragmentMap;
        }
        public CompositePropertyMap(IEnumerable<ICompositePropertyFragmentMap> propertyMaps)
        {
            var propertyMapVisitor = new CompositePropertyMapVisitor();

            propertyMaps.ForEach(fragment => fragment.Accept(propertyMapVisitor));
            ContractType = propertyMapVisitor.ContractType;
            GetPropertyFragmentMap = propertyMapVisitor.GetPropertyFragmentMap;
            SetPropertyFragmentMap = propertyMapVisitor.SetPropertyFragmentMap;
        }