Struct SqlRecordSetInfo
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
IsTemporary
Specifies whether or not this record set is temporary.
public bool IsTemporary { get; }
Property Value
Name
Underlying name of this record set.
public SqlSchemaObjectName Name { get; }
Property Value
Methods
Create(SqlSchemaObjectName)
Creates a new SqlRecordSetInfo instance.
[Pure]
public static SqlRecordSetInfo Create(SqlSchemaObjectName name)
Parameters
name
SqlSchemaObjectNameUnderlying 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
stringName 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
stringName of the SQL schema that the record set belongs to.
objectName
stringName 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
stringUnderlying 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
SqlRecordSetInfoAn object to compare with this object.
Returns
Equals(object?)
Indicates whether this instance and a specified object are equal.
[Pure]
public override bool Equals(object? obj)
Parameters
obj
objectThe 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
SqlRecordSetInfoFirst operand.
b
SqlRecordSetInfoSecond 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
SqlRecordSetInfoFirst operand.
b
SqlRecordSetInfoSecond operand.
Returns
- bool
true when operands are not equal, otherwise false.