コード例 #1
0
        public DBAndFileAuditTrailWriter(DBSQLViewModel dBSQLViewModel, string outputFile, bool DebugOutput = true)
        {
            _dBSQLViewModel = dBSQLViewModel;
            IsDB            = AuditTrailWriterHelper.CreateTable(_dBSQLViewModel);

            if (!string.IsNullOrEmpty(outputFile))
            {
                fileAuditTrailWriter = new FileAuditTrailWriter(outputFile, DebugOutput);
            }
            ;

            this.outputFile  = outputFile ?? null;
            this.DebugOutput = DebugOutput;
        }
コード例 #2
0
 public DBAuditTrailWriter(DBSQLViewModel dBSQLViewModel, bool DebugOutput = true)
 {
     _dBSQLViewModel = dBSQLViewModel;
     AuditTrailWriterHelper.CreateTable(_dBSQLViewModel);
     this.DebugOutput = DebugOutput;
 }