| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | using System; |
| | 9 | | using System.Collections; |
| | 10 | | using System.Collections.Generic; |
| | 11 | | using Azure.Core; |
| | 12 | |
|
| | 13 | | namespace Azure.Analytics.Synapse.Artifacts.Models |
| | 14 | | { |
| | 15 | | /// <summary> The connection used to execute the SQL script. </summary> |
| | 16 | | public partial class SqlConnection : IDictionary<string, object> |
| | 17 | | { |
| | 18 | | /// <summary> Initializes a new instance of SqlConnection. </summary> |
| | 19 | | /// <param name="type"> The type of the connection. </param> |
| | 20 | | /// <param name="name"> The identifier of the connection. </param> |
| | 21 | | /// <exception cref="ArgumentNullException"> <paramref name="name"/> is null. </exception> |
| 0 | 22 | | public SqlConnection(SqlConnectionType type, string name) |
| | 23 | | { |
| 0 | 24 | | if (name == null) |
| | 25 | | { |
| 0 | 26 | | throw new ArgumentNullException(nameof(name)); |
| | 27 | | } |
| | 28 | |
|
| 0 | 29 | | Type = type; |
| 0 | 30 | | Name = name; |
| 0 | 31 | | AdditionalProperties = new ChangeTrackingDictionary<string, object>(); |
| 0 | 32 | | } |
| | 33 | |
|
| | 34 | | /// <summary> Initializes a new instance of SqlConnection. </summary> |
| | 35 | | /// <param name="type"> The type of the connection. </param> |
| | 36 | | /// <param name="name"> The identifier of the connection. </param> |
| | 37 | | /// <param name="additionalProperties"> . </param> |
| 0 | 38 | | internal SqlConnection(SqlConnectionType type, string name, IDictionary<string, object> additionalProperties) |
| | 39 | | { |
| 0 | 40 | | Type = type; |
| 0 | 41 | | Name = name; |
| 0 | 42 | | AdditionalProperties = additionalProperties; |
| 0 | 43 | | } |
| | 44 | |
|
| | 45 | | /// <summary> The type of the connection. </summary> |
| 0 | 46 | | public SqlConnectionType Type { get; set; } |
| | 47 | | /// <summary> The identifier of the connection. </summary> |
| 0 | 48 | | public string Name { get; set; } |
| 0 | 49 | | internal IDictionary<string, object> AdditionalProperties { get; } |
| | 50 | | /// <inheritdoc /> |
| 0 | 51 | | public IEnumerator<KeyValuePair<string, object>> GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 52 | | /// <inheritdoc /> |
| 0 | 53 | | IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); |
| | 54 | | /// <inheritdoc /> |
| 0 | 55 | | public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); |
| | 56 | | /// <inheritdoc /> |
| 0 | 57 | | public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); |
| | 58 | | /// <inheritdoc /> |
| 0 | 59 | | public ICollection<string> Keys => AdditionalProperties.Keys; |
| | 60 | | /// <inheritdoc /> |
| 0 | 61 | | public ICollection<object> Values => AdditionalProperties.Values; |
| | 62 | | /// <inheritdoc /> |
| 0 | 63 | | int ICollection<KeyValuePair<string, object>>.Count => AdditionalProperties.Count; |
| | 64 | | /// <inheritdoc /> |
| 0 | 65 | | public void Add(string key, object value) => AdditionalProperties.Add(key, value); |
| | 66 | | /// <inheritdoc /> |
| 0 | 67 | | public bool Remove(string key) => AdditionalProperties.Remove(key); |
| | 68 | | /// <inheritdoc /> |
| 0 | 69 | | bool ICollection<KeyValuePair<string, object>>.IsReadOnly => AdditionalProperties.IsReadOnly; |
| | 70 | | /// <inheritdoc /> |
| 0 | 71 | | void ICollection<KeyValuePair<string, object>>.Add(KeyValuePair<string, object> value) => AdditionalProperties.A |
| | 72 | | /// <inheritdoc /> |
| 0 | 73 | | bool ICollection<KeyValuePair<string, object>>.Remove(KeyValuePair<string, object> value) => AdditionalPropertie |
| | 74 | | /// <inheritdoc /> |
| 0 | 75 | | bool ICollection<KeyValuePair<string, object>>.Contains(KeyValuePair<string, object> value) => AdditionalPropert |
| | 76 | | /// <inheritdoc /> |
| 0 | 77 | | void ICollection<KeyValuePair<string, object>>.CopyTo(KeyValuePair<string, object>[] destination, int offset) => |
| | 78 | | /// <inheritdoc /> |
| 0 | 79 | | void ICollection<KeyValuePair<string, object>>.Clear() => AdditionalProperties.Clear(); |
| | 80 | | /// <inheritdoc /> |
| | 81 | | public object this[string key] |
| | 82 | | { |
| 0 | 83 | | get => AdditionalProperties[key]; |
| 0 | 84 | | set => AdditionalProperties[key] = value; |
| | 85 | | } |
| | 86 | | } |
| | 87 | | } |