コード例 #1
0
ファイル: Processor.cs プロジェクト: brhinescot/Loom
        /// <summary>
        ///     Initializes a new instance of the <see cref="Processor" /> class.
        /// </summary>
        /// <param name="session">The <see cref="CodeGenSession" /> to use.</param>
        internal Processor(CodeGenSession session)
        {
            Argument.Assert.IsNotNullOrEmpty("session", nameof(session));

            this.session       = session;
            classProcessor     = new ClassProcessor(session);
            procedureProcessor = new ProcedureProcessor(session);
        }
コード例 #2
0
ファイル: Processor.cs プロジェクト: brhinescot/Loom
        /// <summary>
        ///     Initializes a new instance of the <see cref="Processor" /> class.
        /// </summary>
        /// <param name="configurationFilePath">The path to the configuration file.</param>
        public Processor(string configurationFilePath)
        {
            Argument.Assert.IsNotNullOrEmpty(configurationFilePath, nameof(configurationFilePath));

            session            = new CodeGenSession(configurationFilePath);
            classProcessor     = new ClassProcessor(session);
            procedureProcessor = new ProcedureProcessor(session);
        }
コード例 #3
0
ファイル: ClassProcessor.cs プロジェクト: brhinescot/Loom
        public ClassProcessor(CodeGenSession dataSession)
        {
            session = dataSession;

            deletedColumn          = session.Configuration.AuditMapping.DeletedColumn;
            modifiedOnColumn       = session.Configuration.AuditMapping.ModifiedOnColumn;
            modifiedByColumn       = session.Configuration.AuditMapping.ModifiedByColumn;
            createdOnColumn        = session.Configuration.AuditMapping.CreatedOnColumn;
            createdbyColumn        = session.Configuration.AuditMapping.CreatedbyColumn;
            serializationNamespace = session.Configuration.CodeGen.SerializationNamespace;
            allowNillable          = session.Configuration.CodeGen.UseNullableTypes.ToString().ToLower();
        }
コード例 #4
0
ファイル: Processor.cs プロジェクト: brhinescot/Loom
 /// <summary>
 ///     Initializes a new instance of the <see cref="Processor" /> class.
 /// </summary>
 public Processor()
 {
     session            = new CodeGenSession();
     classProcessor     = new ClassProcessor(session);
     procedureProcessor = new ProcedureProcessor(session);
 }
コード例 #5
0
ファイル: ProcedureProcessor.cs プロジェクト: brhinescot/Loom
 public ProcedureProcessor(CodeGenSession session)
 {
     this.session = session;
 }