-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
SqlScriptContent.cs
53 lines (46 loc) · 2.31 KB
/
SqlScriptContent.cs
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
45
46
47
48
49
50
51
52
53
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Analytics.Synapse.Artifacts.Models
{
/// <summary> The content of the SQL script. </summary>
public partial class SqlScriptContent
{
/// <summary> Initializes a new instance of <see cref="SqlScriptContent"/>. </summary>
/// <param name="query"> SQL query to execute. </param>
/// <exception cref="ArgumentNullException"> <paramref name="query"/> is null. </exception>
public SqlScriptContent(string query)
{
Argument.AssertNotNull(query, nameof(query));
Query = query;
AdditionalProperties = new ChangeTrackingDictionary<string, object>();
}
/// <summary> Initializes a new instance of <see cref="SqlScriptContent"/>. </summary>
/// <param name="query"> SQL query to execute. </param>
/// <param name="currentConnection"> The connection used to execute the SQL script. </param>
/// <param name="resultLimit"> Limit of results, '-1' for no limit. </param>
/// <param name="metadata"> The metadata of the SQL script. </param>
/// <param name="additionalProperties"> Additional Properties. </param>
internal SqlScriptContent(string query, SqlConnection currentConnection, int? resultLimit, SqlScriptMetadata metadata, IDictionary<string, object> additionalProperties)
{
Query = query;
CurrentConnection = currentConnection;
ResultLimit = resultLimit;
Metadata = metadata;
AdditionalProperties = additionalProperties;
}
/// <summary> SQL query to execute. </summary>
public string Query { get; set; }
/// <summary> The connection used to execute the SQL script. </summary>
public SqlConnection CurrentConnection { get; set; }
/// <summary> Limit of results, '-1' for no limit. </summary>
public int? ResultLimit { get; set; }
/// <summary> The metadata of the SQL script. </summary>
public SqlScriptMetadata Metadata { get; set; }
/// <summary> Additional Properties. </summary>
public IDictionary<string, object> AdditionalProperties { get; }
}
}