MethodBoundaryAspect.Fody - Altering asynchronous method behavior

MethodBoundaryAspect.Fody 要修改非同步方法的回傳值,可在 OnExit 方法實作時將 MethodExecutionArgs.ReturnValue 屬性值轉回 Task,用 ContinueWith 串接處理,並將之塞回 MethodExecutionArgs.ReturnValue。 ...

September 1, 2019 · 1 min · 259 words · Larry Nung

MethodBoundaryAspect.Fody - Altering method behavior

MethodBoundaryAspect.Fody 要修改方法的回傳值,可在 OnExit 方法實作時透過 MethodExecutionArgs.ReturnValue 屬性填入新的方法值。 ...

August 31, 2019 · 1 min · 175 words · Larry Nung

MethodBoundaryAspect.Fody - A Fody weaver which allows to decorate methods and hook into method start, method end and method exceptions

MethodBoundaryAspect.Fody 能透過 Fody 在程式編譯時將進出方法與方法丟出錯誤時的處理掛入系統中。 ...

August 29, 2019 · 1 min · 264 words · Larry Nung

ModuleInit.Fody - Adds a module initializer to an assembly

ModuleInit.Fody 能透過 Fody 在程式編譯時將初始化處理掛入系統程式中,能在系統一開始運行時做初始的動作。 ...

August 26, 2019 · 1 min · 134 words · Larry Nung

MethodTimer.Fody - Injects some very basic method timing code

MethodTimer.Fody 能透過 Fody 在程式編譯時將用來計算時間的程式放入掛有 TimeAttribute 的方法。 ...

August 26, 2019 · 1 min · 220 words · Larry Nung

migrate - Force set version without run migration

migrate 的 force 命令可不運行 migration 就強制設定版本。 ...

August 19, 2019 · 1 min · 84 words · Larry Nung

SchemaSync - Generate the SQL necessary to migrate the schema of a source database to a target database

SchemaSync 使用方式如下: schemas # source/target format: mysql://user:pass@host:port/database # output format: [_].YYYYMMDD.(patch|revert)[_].sql -h, --help show this help message and exit -V, --version show version and exit. -r, --revision increment the migration script version number if a file with the same name already exists. -a, --sync-auto-inc sync the AUTO_INCREMENT value for each table. -c, --sync-comments sync the COMMENT field for all tables AND columns --tag=TAG tag the migration scripts as _. Valid characters include [A-Za-z0-9-_] --output-directory=OUTPUT_DIRECTORY directory to write the migration scrips. The default is current working directory. Must use absolute path if provided. --log-directory=LOG_DIRECTORY set the directory to write the log to. Must use absolute path if provided. Default is output directory. Log filename is schemasync.log 簡單的說就是帶入來源資料庫位置與目的資料庫位置,SchemaSync 即會連入來源與目的資料庫進行比對,產生對應的腳本檔案。 ...

August 13, 2019 · 1 min · 325 words · Larry Nung

SchemaSync - Installing the latest development version

要安裝 SchemaSync 最新的開發版,先將 SchemaSync 用 git clone 下來。 ...

August 10, 2019 · 1 min · 83 words · Larry Nung

State/Migration driven database delivery

資料庫在做版本控制可被分為 State-driven 與 Migration-driven 兩種方式。 ...

August 6, 2019 · 2 min · 545 words · Larry Nung

migrate - Getting started

migrate 安裝後可調用命令查閱 CLI 使用方式。 ...

August 4, 2019 · 1 min · 461 words · Larry Nung