Skip to main content

SqlTimingParameter

Information about a DbParameter used in the sql statement profiled by SqlTiming.

Assembly: ServiceStack.NetFramework.dll
View Source
Declaration
[ExcludeMetadata]
[DataContract]
public class SqlTimingParameter

Properties

ParentSqlTimingId

Which SqlTiming this Parameter was executed with.

View Source
Declaration
public Guid ParentSqlTimingId { get; set; }

Name

Parameter name, e.g. "@routeName"

View Source
Declaration
[DataMember(Order = 1, Name = "Name")]
public string Name { get; set; }

Value

The value submitted to the database.

View Source
Declaration
[DataMember(Order = 2, Name = "Value")]
public string Value { get; set; }

DbType

System.Data.DbType, e.g. "String", "Bit"

View Source
Declaration
[DataMember(Order = 3, Name = "DbType")]
public string DbType { get; set; }

Size

How large the type is, e.g. for string, size could be 4000

View Source
Declaration
[DataMember(Order = 4, Name = "Size")]
public int Size { get; set; }

Methods

Equals(Object)

Returns true if this has the same parent ServiceStack.MiniProfiler.SqlTiming.Id, ServiceStack.MiniProfiler.SqlTimingParameter.Name and ServiceStack.MiniProfiler.SqlTimingParameter.Value as <code data-dev-comment-type="paramref" class="paramref">obj</code>.

View Source
Declaration
public override bool Equals(object obj)
Returns

System.Boolean

Parameters
TypeName
System.Objectobj

GetHashCode()

Returns the XOR of certain properties.

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32