Skip to main content

SqlMapper.Identity

Identity of a cached query in Dapper, used for extensibility.

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class Identity : IEquatable<SqlMapper.Identity>

Fields

sql

The raw SQL command.

View Source
Declaration
public readonly string sql

commandType

The SQL command type.

View Source
Declaration
public readonly CommandType? commandType

hashCode

The hash code of this Identity.

View Source
Declaration
public readonly int hashCode

gridIndex

The grid index (position in the reader) of this Identity.

View Source
Declaration
public readonly int gridIndex

type

This <see cref="!:Type"></see> of this Identity.

View Source
Declaration
public readonly Type type

connectionString

The connection string for this Identity.

View Source
Declaration
public readonly string connectionString

parametersType

The type of the parameters object for this Identity.

View Source
Declaration
public readonly Type parametersType

Methods

ForDynamicParameters(Type)

Create an identity for use with DynamicParameters, internal use only.

View Source
Declaration
public SqlMapper.Identity ForDynamicParameters(Type type)
Returns

ServiceStack.OrmLite.Dapper.SqlMapper.Identity

Parameters
TypeNameDescription
TypetypeThe parameters type to create an ServiceStack.OrmLite.Dapper.SqlMapper.Identity for.

|

Equals(Object)

Whether this ServiceStack.OrmLite.Dapper.SqlMapper.Identity equals another.

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

System.Boolean

Parameters
TypeNameDescription
System.ObjectobjThe other <see cref="!:System.Object"></see> to compare to.

|

GetHashCode()

Gets the hash code for this identity.

View Source
Declaration
public override int GetHashCode()
Returns

System.Int32

ToString()

See object.ToString()

View Source
Declaration
public override string ToString()
Returns

System.String

Equals(SqlMapper.Identity)

Compare 2 Identity objects

View Source
Declaration
public bool Equals(SqlMapper.Identity other)
Returns

System.Boolean: Whether the two are equal

Parameters
TypeNameDescription
ServiceStack.OrmLite.Dapper.SqlMapper.IdentityotherThe other ServiceStack.OrmLite.Dapper.SqlMapper.Identity object to compare.

|