/// <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); }
/// <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); }
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(); }
/// <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); }
public ProcedureProcessor(CodeGenSession session) { this.session = session; }