From 1c54c68d5c80e02fca346d66aa47c3b0d406d265 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Wed, 8 Jan 2025 12:01:14 +0530 Subject: [PATCH 1/2] Fix ref assembly definitions for SqlClientDiagnostic APIs --- .../netcore/ref/Microsoft.Data.SqlClient.cs | 350 ++++++++++++------ 1 file changed, 227 insertions(+), 123 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs index aad5b77969..20d6f55abc 100644 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs +++ b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs @@ -6,6 +6,9 @@ // New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future. using System; +using System.Collections; +using System.Collections.Generic; + #if NET using System.Diagnostics.CodeAnalysis; #endif @@ -1946,58 +1949,43 @@ public sealed class SqlConfigurableRetryFactory } namespace Microsoft.Data.SqlClient.Diagnostics { - /// - public abstract class SqlClientDiagnostic : System.Collections.Generic.IReadOnlyList> - { - internal SqlClientDiagnostic() { } - /// - protected const int CommonPropertyCount = 3; - /// - protected SqlClientDiagnostic(System.Guid operationId, string operation, long timestamp) { } + /// + public sealed class SqlClientCommandBefore : System.Collections.Generic.IReadOnlyList> + { + /// + public const string Name = "Microsoft.Data.SqlClient.WriteCommandBefore"; /// - public System.Guid OperationId => throw null; + public Guid OperationId => throw null; /// public string Operation => throw null; /// public long Timestamp => throw null; - /// > - public int Count => CommonPropertyCount + GetDerivedCount(); - /// > - public System.Collections.Generic.KeyValuePair this[int index] => throw null; - /// > - public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; - /// > - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); - /// - protected bool TryGetCommonProperty(int index, out System.Collections.Generic.KeyValuePair property) => throw null; - /// - protected abstract int GetDerivedCount(); - /// - protected abstract System.Collections.Generic.KeyValuePair GetDerivedProperty(int index); - } - - /// - public sealed class SqlClientCommandBefore : SqlClientDiagnostic - { - /// - public const string Name = "Microsoft.Data.SqlClient.WriteCommandBefore"; /// public System.Guid? ConnectionId => throw null; /// public long? TransactionId => throw null; /// public SqlCommand Command => throw null; - /// > - protected sealed override int GetDerivedCount() => 3; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientCommandAfter : SqlClientDiagnostic + public sealed class SqlClientCommandAfter : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteCommandAfter"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid? ConnectionId => throw null; /// @@ -2006,17 +1994,26 @@ public sealed class SqlClientCommandAfter : SqlClientDiagnostic public SqlCommand Command => throw null; /// public System.Collections.IDictionary Statistics => throw null; - /// > - protected sealed override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientCommandError : SqlClientDiagnostic + public sealed class SqlClientCommandError : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteCommandError"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid? ConnectionId => throw null; /// @@ -2025,32 +2022,50 @@ public sealed class SqlClientCommandError : SqlClientDiagnostic public SqlCommand Command => throw null; /// public System.Exception Exception { get; } - /// > - protected sealed override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientConnectionOpenBefore : SqlClientDiagnostic + public sealed class SqlClientConnectionOpenBefore : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenBefore"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public SqlConnection Connection => throw null; /// public string ClientVersion => throw null; - /// > - protected override int GetDerivedCount() => 2; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientConnectionOpenAfter : SqlClientDiagnostic + public sealed class SqlClientConnectionOpenAfter : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenAfter"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid ConnectionId => throw null; /// @@ -2059,17 +2074,26 @@ public sealed class SqlClientConnectionOpenAfter : SqlClientDiagnostic public string ClientVersion => throw null; /// public System.Collections.IDictionary Statistics => throw null; - /// > - protected override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientConnectionOpenError : SqlClientDiagnostic + public sealed class SqlClientConnectionOpenError : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenError"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid ConnectionId => throw null; /// @@ -2078,56 +2102,78 @@ public sealed class SqlClientConnectionOpenError : SqlClientDiagnostic public string ClientVersion => throw null; /// public System.Exception Exception => throw null; - /// > - protected override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientConnectionCloseBefore : SqlClientDiagnostic + public sealed class SqlClientConnectionCloseBefore : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionCloseBefore"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid? ConnectionId => throw null; /// public SqlConnection Connection => throw null; /// public System.Collections.IDictionary Statistics => throw null; - /// > - protected sealed override int GetDerivedCount() => 3; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientConnectionCloseAfter : SqlClientDiagnostic + public sealed class SqlClientConnectionCloseAfter : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionCloseAfter"; - + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid? ConnectionId => throw null; - /// public SqlConnection Connection => throw null; - /// public System.Collections.IDictionary Statistics => throw null; - - /// > - protected sealed override int GetDerivedCount() => 3; - - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientConnectionCloseError : SqlClientDiagnostic + public sealed class SqlClientConnectionCloseError : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionCloseError"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Guid? ConnectionId => throw null; /// @@ -2136,51 +2182,78 @@ public sealed class SqlClientConnectionCloseError : SqlClientDiagnostic public System.Collections.IDictionary Statistics => throw null; /// public System.Exception Exception => throw null; - /// > - protected sealed override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientTransactionCommitBefore : SqlClientDiagnostic + public sealed class SqlClientTransactionCommitBefore : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionCommitBefore"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Data.IsolationLevel IsolationLevel => throw null; /// public SqlConnection Connection => throw null; /// public long? TransactionId => throw null; - /// > - protected sealed override int GetDerivedCount() => 3; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientTransactionCommitAfter : SqlClientDiagnostic + public sealed class SqlClientTransactionCommitAfter : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionCommitAfter"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Data.IsolationLevel IsolationLevel => throw null; /// public SqlConnection Connection => throw null; /// public long? TransactionId => throw null; - /// > - protected sealed override int GetDerivedCount() => 3; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientTransactionCommitError : SqlClientDiagnostic + public sealed class SqlClientTransactionCommitError : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionCommitError"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Data.IsolationLevel IsolationLevel => throw null; /// @@ -2189,17 +2262,26 @@ public sealed class SqlClientTransactionCommitError : SqlClientDiagnostic public long? TransactionId => throw null; /// public System.Exception Exception => throw null; - /// > - protected sealed override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientTransactionRollbackBefore : SqlClientDiagnostic + public sealed class SqlClientTransactionRollbackBefore : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackBefore"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Data.IsolationLevel IsolationLevel => throw null; /// @@ -2208,17 +2290,26 @@ public sealed class SqlClientTransactionRollbackBefore : SqlClientDiagnostic public long? TransactionId => throw null; /// public string TransactionName => throw null; - /// > - protected sealed override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientTransactionRollbackAfter : SqlClientDiagnostic + public sealed class SqlClientTransactionRollbackAfter : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackAfter"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Data.IsolationLevel IsolationLevel => throw null; /// @@ -2227,17 +2318,26 @@ public sealed class SqlClientTransactionRollbackAfter : SqlClientDiagnostic public long? TransactionId => throw null; /// public string TransactionName => throw null; - /// > - protected sealed override int GetDerivedCount() => 4; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } - /// - public sealed class SqlClientTransactionRollbackError : SqlClientDiagnostic + public sealed class SqlClientTransactionRollbackError : System.Collections.Generic.IReadOnlyList> { /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackError"; + /// + public Guid OperationId => throw null; + /// + public string Operation => throw null; + /// + public long Timestamp => throw null; /// public System.Data.IsolationLevel IsolationLevel => throw null; /// @@ -2248,10 +2348,14 @@ public sealed class SqlClientTransactionRollbackError : SqlClientDiagnostic public string TransactionName => throw null; /// public System.Exception Exception => throw null; - /// > - protected sealed override int GetDerivedCount() => 5; - /// > - protected sealed override System.Collections.Generic.KeyValuePair GetDerivedProperty(int index) => throw null; + /// + public int Count => throw null; + /// >/// + public KeyValuePair this[int index] => throw null; + /// + IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + /// + public IEnumerator> GetEnumerator() => throw null; } } namespace Microsoft.Data.SqlClient.Server From 06c33c0233dd8478ca2aa674d19babee7a55aa14 Mon Sep 17 00:00:00 2001 From: Cheena Malhotra Date: Wed, 8 Jan 2025 19:01:25 +0530 Subject: [PATCH 2/2] Fix namespaces --- .../SqlClientDiagnostic.xml | 2 +- .../netcore/ref/Microsoft.Data.SqlClient.cs | 138 +++++++++--------- 2 files changed, 66 insertions(+), 74 deletions(-) diff --git a/doc/snippets/Microsoft.Data.SqlClient/SqlClientDiagnostic.xml b/doc/snippets/Microsoft.Data.SqlClient/SqlClientDiagnostic.xml index 6306c624f4..d84a520c54 100644 --- a/doc/snippets/Microsoft.Data.SqlClient/SqlClientDiagnostic.xml +++ b/doc/snippets/Microsoft.Data.SqlClient/SqlClientDiagnostic.xml @@ -34,7 +34,7 @@ The element at the specified index in the read-only list. - + diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs index 20d6f55abc..9e9245b38f 100644 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs +++ b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs @@ -5,14 +5,6 @@ // NOTE: The current Microsoft.VSDesigner editor attributes are implemented for System.Data.SqlClient, and are not publicly available. // New attributes that are designed to work with Microsoft.Data.SqlClient and are publicly documented should be included in future. -using System; -using System.Collections; -using System.Collections.Generic; - -#if NET -using System.Diagnostics.CodeAnalysis; -#endif - [assembly: System.CLSCompliant(true)] namespace Microsoft.Data { @@ -1308,7 +1300,7 @@ public override void Close() { } public override System.Collections.IEnumerator GetEnumerator() { throw null; } /// #if NET - [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] + [return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] #endif public override System.Type GetFieldType(int i) { throw null; } /// @@ -1331,7 +1323,7 @@ public override void Close() { } public override int GetOrdinal(string name) { throw null; } /// #if NET - [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] + [return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] #endif public override System.Type GetProviderSpecificFieldType(int i) { throw null; } /// @@ -1955,7 +1947,7 @@ public sealed class SqlClientCommandBefore : System.Collections.Generic.IReadOnl /// public const string Name = "Microsoft.Data.SqlClient.WriteCommandBefore"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -1968,12 +1960,12 @@ public sealed class SqlClientCommandBefore : System.Collections.Generic.IReadOnl public SqlCommand Command => throw null; /// public int Count => throw null; - /// >/// - public KeyValuePair this[int index] => throw null; + /// + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientCommandAfter : System.Collections.Generic.IReadOnlyList> @@ -1981,7 +1973,7 @@ public sealed class SqlClientCommandAfter : System.Collections.Generic.IReadOnly /// public const string Name = "Microsoft.Data.SqlClient.WriteCommandAfter"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -1996,12 +1988,12 @@ public sealed class SqlClientCommandAfter : System.Collections.Generic.IReadOnly public System.Collections.IDictionary Statistics => throw null; /// public int Count => throw null; - /// >/// - public KeyValuePair this[int index] => throw null; + /// + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientCommandError : System.Collections.Generic.IReadOnlyList> @@ -2009,7 +2001,7 @@ public sealed class SqlClientCommandError : System.Collections.Generic.IReadOnly /// public const string Name = "Microsoft.Data.SqlClient.WriteCommandError"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2025,11 +2017,11 @@ public sealed class SqlClientCommandError : System.Collections.Generic.IReadOnly /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientConnectionOpenBefore : System.Collections.Generic.IReadOnlyList> @@ -2037,7 +2029,7 @@ public sealed class SqlClientConnectionOpenBefore : System.Collections.Generic.I /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenBefore"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2049,11 +2041,11 @@ public sealed class SqlClientConnectionOpenBefore : System.Collections.Generic.I /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientConnectionOpenAfter : System.Collections.Generic.IReadOnlyList> @@ -2061,7 +2053,7 @@ public sealed class SqlClientConnectionOpenAfter : System.Collections.Generic.IR /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenAfter"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2077,11 +2069,11 @@ public sealed class SqlClientConnectionOpenAfter : System.Collections.Generic.IR /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientConnectionOpenError : System.Collections.Generic.IReadOnlyList> @@ -2089,7 +2081,7 @@ public sealed class SqlClientConnectionOpenError : System.Collections.Generic.IR /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionOpenError"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2105,11 +2097,11 @@ public sealed class SqlClientConnectionOpenError : System.Collections.Generic.IR /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientConnectionCloseBefore : System.Collections.Generic.IReadOnlyList> @@ -2117,7 +2109,7 @@ public sealed class SqlClientConnectionCloseBefore : System.Collections.Generic. /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionCloseBefore"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2131,11 +2123,11 @@ public sealed class SqlClientConnectionCloseBefore : System.Collections.Generic. /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientConnectionCloseAfter : System.Collections.Generic.IReadOnlyList> @@ -2143,7 +2135,7 @@ public sealed class SqlClientConnectionCloseAfter : System.Collections.Generic.I /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionCloseAfter"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2157,11 +2149,11 @@ public sealed class SqlClientConnectionCloseAfter : System.Collections.Generic.I /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientConnectionCloseError : System.Collections.Generic.IReadOnlyList> @@ -2169,7 +2161,7 @@ public sealed class SqlClientConnectionCloseError : System.Collections.Generic.I /// public const string Name = "Microsoft.Data.SqlClient.WriteConnectionCloseError"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2185,11 +2177,11 @@ public sealed class SqlClientConnectionCloseError : System.Collections.Generic.I /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientTransactionCommitBefore : System.Collections.Generic.IReadOnlyList> @@ -2197,7 +2189,7 @@ public sealed class SqlClientTransactionCommitBefore : System.Collections.Generi /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionCommitBefore"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2211,11 +2203,11 @@ public sealed class SqlClientTransactionCommitBefore : System.Collections.Generi /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientTransactionCommitAfter : System.Collections.Generic.IReadOnlyList> @@ -2223,7 +2215,7 @@ public sealed class SqlClientTransactionCommitAfter : System.Collections.Generic /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionCommitAfter"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2237,11 +2229,11 @@ public sealed class SqlClientTransactionCommitAfter : System.Collections.Generic /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientTransactionCommitError : System.Collections.Generic.IReadOnlyList> @@ -2249,7 +2241,7 @@ public sealed class SqlClientTransactionCommitError : System.Collections.Generic /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionCommitError"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2265,11 +2257,11 @@ public sealed class SqlClientTransactionCommitError : System.Collections.Generic /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientTransactionRollbackBefore : System.Collections.Generic.IReadOnlyList> @@ -2277,7 +2269,7 @@ public sealed class SqlClientTransactionRollbackBefore : System.Collections.Gene /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackBefore"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2293,11 +2285,11 @@ public sealed class SqlClientTransactionRollbackBefore : System.Collections.Gene /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientTransactionRollbackAfter : System.Collections.Generic.IReadOnlyList> @@ -2305,7 +2297,7 @@ public sealed class SqlClientTransactionRollbackAfter : System.Collections.Gener /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackAfter"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2321,11 +2313,11 @@ public sealed class SqlClientTransactionRollbackAfter : System.Collections.Gener /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } /// public sealed class SqlClientTransactionRollbackError : System.Collections.Generic.IReadOnlyList> @@ -2333,7 +2325,7 @@ public sealed class SqlClientTransactionRollbackError : System.Collections.Gener /// public const string Name = "Microsoft.Data.SqlClient.WriteTransactionRollbackError"; /// - public Guid OperationId => throw null; + public System.Guid OperationId => throw null; /// public string Operation => throw null; /// @@ -2351,11 +2343,11 @@ public sealed class SqlClientTransactionRollbackError : System.Collections.Gener /// public int Count => throw null; /// >/// - public KeyValuePair this[int index] => throw null; + public System.Collections.Generic.KeyValuePair this[int index] => throw null; /// - IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); /// - public IEnumerator> GetEnumerator() => throw null; + public System.Collections.Generic.IEnumerator> GetEnumerator() => throw null; } } namespace Microsoft.Data.SqlClient.Server @@ -2395,7 +2387,7 @@ public SqlDataRecord(params Microsoft.Data.SqlClient.Server.SqlMetaData[] metaDa public virtual double GetDouble(int ordinal) { throw null; } /// #if NET - [return: DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties)] + [return: System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembers(System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicFields | System.Diagnostics.CodeAnalysis.DynamicallyAccessedMemberTypes.PublicProperties)] #endif public virtual System.Type GetFieldType(int ordinal) { throw null; } ///