Table of Contents

Struct SqlRecordSetInfo

Namespace
LfrlAnvil.Sql
Assembly
LfrlAnvil.Sql.Core.dll

Represents a name of an SQL record set.

public readonly struct SqlRecordSetInfo : IEquatable<SqlRecordSetInfo>
Implements
Inherited Members

Properties

Identifier

Identifier of this record set.

public string Identifier { get; }

Property Value

string

IsTemporary

Specifies whether or not this record set is temporary.

public bool IsTemporary { get; }

Property Value

bool

Name

Underlying name of this record set.

public SqlSchemaObjectName Name { get; }

Property Value

SqlSchemaObjectName

Methods

Create(SqlSchemaObjectName)

Creates a new SqlRecordSetInfo instance.

[Pure]
public static SqlRecordSetInfo Create(SqlSchemaObjectName name)

Parameters

name SqlSchemaObjectName

Underlying name of the record set.

Returns

SqlRecordSetInfo

New SqlRecordSetInfo instance

Create(string)

Creates a new SqlRecordSetInfo instance with empty Schema.

[Pure]
public static SqlRecordSetInfo Create(string objectName)

Parameters

objectName string

Name of the record set object.

Returns

SqlRecordSetInfo

New SqlRecordSetInfo instance

Create(string, string)

Creates a new SqlRecordSetInfo instance.

[Pure]
public static SqlRecordSetInfo Create(string schemaName, string objectName)

Parameters

schemaName string

Name of the SQL schema that the record set belongs to.

objectName string

Name of the record set object.

Returns

SqlRecordSetInfo

New SqlRecordSetInfo instance

CreateTemporary(string)

Creates a new SqlRecordSetInfo instance that is marked as temporary.

[Pure]
public static SqlRecordSetInfo CreateTemporary(string name)

Parameters

name string

Underlying name of the record set.

Returns

SqlRecordSetInfo

New SqlRecordSetInfo instance

Equals(SqlRecordSetInfo)

Indicates whether the current object is equal to another object of the same type.

[Pure]
public bool Equals(SqlRecordSetInfo other)

Parameters

other SqlRecordSetInfo

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Indicates whether this instance and a specified object are equal.

[Pure]
public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

[Pure]
public override int GetHashCode()

Returns

int

A 32-bit signed integer that is the hash code for this instance.

ToString()

Returns a string representation of this SqlRecordSetInfo instance.

[Pure]
public override string ToString()

Returns

string

String representation.

Operators

operator ==(SqlRecordSetInfo, SqlRecordSetInfo)

Checks if a is equal to b.

[Pure]
public static bool operator ==(SqlRecordSetInfo a, SqlRecordSetInfo b)

Parameters

a SqlRecordSetInfo

First operand.

b SqlRecordSetInfo

Second operand.

Returns

bool

true when operands are equal, otherwise false.

operator !=(SqlRecordSetInfo, SqlRecordSetInfo)

Checks if a is not equal to b.

[Pure]
public static bool operator !=(SqlRecordSetInfo a, SqlRecordSetInfo b)

Parameters

a SqlRecordSetInfo

First operand.

b SqlRecordSetInfo

Second operand.

Returns

bool

true when operands are not equal, otherwise false.