Repository navigation
Expand file tree
/
Copy pathSqlScript.cs
More file actions
44 lines (42 loc) · 1.49 KB
/
Copy pathSqlScript.cs
File metadata and controls
44 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using DbUp.Engine;
namespace DBOps
{
public class SqlScript: DbUp.Engine.SqlScript
{
/// <summary>
/// Initializes a new instance of the <see cref="SqlScript"/> class.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="contents">The contents.</param>
public SqlScript(string name, string contents) : base(name, contents)
{
}
/// <summary>
/// Initializes a new instance of the <see cref="SqlScript"/> class with a specific script type and a specific order
/// </summary>
/// <param name="name">The name.</param>
/// <param name="contents">The contents.</param>
/// <param name="sqlScriptOptions">The script options.</param>
public SqlScript(string name, string contents, SqlScriptOptions sqlScriptOptions) : base(name, contents, sqlScriptOptions)
{
}
/// <summary>
/// Execution time of the script in milliseconds.
/// </summary>
/// <value></value>
public long _ExecutionTime = -1;
/// <summary>
/// Execution time of the script in milliseconds.
/// </summary>
/// <value></value>
public long ExecutionTime => _ExecutionTime;
/// <summary>
/// Sets execution duration.
/// </summary>
/// <value></value>
public void SetExecutionTime(long milliseconds)
{
_ExecutionTime = milliseconds;
}
}
}