示例#1
0
        public SerializableResolutionAction(ConfigConflictResolutionAction edmAction)
        {
            if (null == edmAction)
            {
                throw new ArgumentNullException("edmAction");
            }

            this.StorageId     = edmAction.Id;
            this.ReferenceName = edmAction.ReferenceName;
            this.FriendlyName  = edmAction.FriendlyName;
            this.IsActive      = edmAction.IsActive;
            edmAction.ProviderReference.Load();
            this.Provider = edmAction.Provider == null ?
                            null : new SerializableProvider(edmAction.Provider);
        }
示例#2
0
        public SerializableConflictType(ConfigConflictType edmConflictType)
        {
            if (null == edmConflictType)
            {
                throw new ArgumentNullException("edmConflictType");
            }

            this.StorageId      = edmConflictType.Id;
            this.ReferenceName  = edmConflictType.ReferenceName;
            this.FriendlyName   = edmConflictType.FriendlyName;
            this.DescriptionDoc = edmConflictType.DescriptionDoc;
            this.IsActive       = edmConflictType.IsActive;
            edmConflictType.ProviderReference.Load();
            this.Provider = edmConflictType.Provider == null
                ? null : new SerializableProvider(edmConflictType.Provider);
        }