Struct SqlObjectName
Represents full name of database object (e.g. table, view, function or procedure) split into components.
public readonly record struct SqlObjectName : IEquatable<SqlObjectName>
- Implements
- Inherited Members
- Extension Methods
Constructors
SqlObjectName(string, string?, string?, string?, string?)
Represents full name of database object (e.g. table, view, function or procedure) split into components.
public SqlObjectName(string Name, string? Server = null, string? Database = null, string? Schema = null, string? Package = null)
Parameters
Name
stringName of object in current scope (e.g. in schema or package).
Server
stringDatabase server or linked server name.
Database
stringDatabase/catalog name.
Schema
stringSchema/user name.
Package
stringPackage/module/library name (used with functions and stored procedures).
Properties
Database
Database/catalog name.
public string? Database { get; init; }
Property Value
Name
Name of object in current scope (e.g. in schema or package).
public string Name { get; init; }
Property Value
Package
Package/module/library name (used with functions and stored procedures).
public string? Package { get; init; }
Property Value
Schema
Schema/user name.
public string? Schema { get; init; }
Property Value
Server
Database server or linked server name.
public string? Server { get; init; }
Property Value
Methods
ToString()
Returns the fully qualified type name of this instance.
public override string ToString()