示例#1
0
        public NamePostProcessor(SqlDialect dialect, NameTransformerFactory transformerFactory, ITableNameAbbreviator tableAbbreviator, ProjectSettings settings)
        {
            if (transformerFactory == null)
            {
                throw new ArgumentNullException("transformerFactory");
            }
            if (tableAbbreviator == null)
            {
                throw new ArgumentNullException("tableAbbreviator");
            }

            transfactory          = transformerFactory;
            this.tableAbbreviator = tableAbbreviator;
            this.settings         = settings;
            this.dialect          = dialect;
        }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DataModelGenerator"/> class.
 /// </summary>
 /// <param name="schemaDescriptor">The schema descriptor.</param>
 /// <param name="transformerFactory">The transformer factory.</param>
 /// <param name="tableAbbreviator">The table abbreviator.</param>
 public DataModelGenerator(ISchemaDescriptor schemaDescriptor, NameTransformerFactory transformerFactory, ITableNameAbbreviator tableAbbreviator)
 {
     this.schemaDescriptor = schemaDescriptor;
     transfactory          = transformerFactory;
     this.tableAbbreviator = tableAbbreviator;
 }