예제 #1
0
 private static ChangeScriptExecutionRecord ReadLegacyExecutionRecord(SqlDataReader r)
 {
     return(new ChangeScriptExecutionRecord(
                new ChangeScriptId((int)r["Script_Id"], (long)r["Numeric_Release_Number"]),
                r["Batch_Name"]?.ToString(),
                new DateTime(((DateTime)r["Executed_Date"]).Ticks, DateTimeKind.Local).ToUniversalTime(),
                YNIndicator.Parse(r["Success_Indicator"]?.ToString())
                ));
 }
예제 #2
0
 private static ChangeScriptExecutionRecord ReadExecutionRecord(SqlDataReader r)
 {
     return(new ChangeScriptExecutionRecord(
                new ChangeScriptId((int)r["Script_Id"], (Guid)r["Script_Guid"]),
                r["Script_Name"]?.ToString(),
                new DateTime(((DateTime)r["Executed_Date"]).Ticks, DateTimeKind.Utc),
                YNIndicator.Parse(r["Success_Indicator"]?.ToString())
                ));
 }