Skip to content

Commit

Permalink
Fix for #599
Browse files Browse the repository at this point in the history
  • Loading branch information
NickCraver committed Aug 24, 2022
1 parent 639c0ba commit 2c7b0a2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/MiniProfiler.Shared/Data/ProfiledDbCommand.cs
@@ -1,4 +1,5 @@
using System;
using System.ComponentModel;
using System.Data;
using System.Data.Common;
using System.Reflection;
Expand Down Expand Up @@ -425,8 +426,15 @@ protected override void Dispose(bool disposing)
}

/// <summary>
/// Gets the internal command.
/// Obsolete - please use <see cref="WrappedCommand"/>.
/// </summary>
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never), Obsolete($"Please use {nameof(WrappedCommand)}", false)]
public DbCommand InternalCommand => _command;

/// <summary>
/// Gets the internally wrapped <see cref="DbCommand"/>.
/// </summary>
public DbCommand WrappedCommand => _command;
}
}

0 comments on commit 2c7b0a2

Please sign in to comment.