コード例 #1
0
        // Constructors

        /// <summary>
        /// Creates instance of <see cref="IgnoreRuleCollection"/> handler
        /// </summary>
        /// <param name="model">Extracted model</param>
        /// <param name="configuration">Configuration of domain</param>
        public IgnoreRulesHandler(SchemaExtractionResult model, DomainConfiguration configuration, MappingResolver resolver)
        {
            ArgumentValidator.EnsureArgumentNotNull(model, "model");
            ArgumentValidator.EnsureArgumentNotNull(configuration, "configuration");
            targetModel     = model;
            ignoreRules     = configuration.IgnoreRules;
            mappingResolver = resolver;
        }
コード例 #2
0
        private IgnoreRuleCollection GetIgnoreRules()
        {
            var collection = new IgnoreRuleCollection();

            _ = collection.IgnoreTable("HiddenTable");
            _ = collection.IgnoreTable("NotInDomain*");
            _ = collection.IgnoreColumn("NotInDomain*").WhenTable("Currency");
            _ = collection.IgnoreColumn("HiddenComment").WhenTable("PriceList");
            _ = collection.IgnoreColumn("HiddenName").WhenTable("Product");

            return(collection);
        }