Class CreateTempTableOptions
- Namespace
- LinqToDB
- Assembly
- linq2db.dll
Options for creating a temporary table.
public sealed record CreateTempTableOptions : CreateTableOptions, IEquatable<CreateTableOptions>, IEquatable<CreateTempTableOptions>
- Inheritance
-
CreateTempTableOptions
- Implements
- Inherited Members
- Extension Methods
Constructors
CreateTempTableOptions(string?, string?, string?, string?, string?, string?, TableOptions, DefaultNullable)
Options for creating a temporary table.
public CreateTempTableOptions(string? TableName = null, string? DatabaseName = null, string? SchemaName = null, string? ServerName = null, string? StatementHeader = null, string? StatementFooter = null, TableOptions TableOptions = TableOptions.IsTemporary, DefaultNullable DefaultNullable = DefaultNullable.None)
Parameters
TableNamestringOptional name of temporary table. If not specified, value from mapping will be used.
DatabaseNamestringOptional name of table's database. If not specified, value from mapping will be used.
SchemaNamestringOptional name of table schema/owner. If not specified, value from mapping will be used.
ServerNamestringOptional name of linked server. If not specified, value from mapping will be used.
StatementHeaderstringReplacement for
"CREATE TABLE table_name"header. Header is a template with{0}parameter for table name.StatementFooterstringSQL appended to the generated create table statement.
TableOptionsTableOptionsOptional Table options. Default is IsTemporary.
DefaultNullableDefaultNullableDefines how columns nullability flag should be generated:
- Null - generate only
NOT NULLfor non-nullable fields. Missing nullability information treated asNULLby database.- NotNull - generate only
NULLfor nullable fields. Missing nullability information treated asNOT NULLby database.- None - explicitly generate
Default value: None.NULLandNOT NULLfor all columns.
Properties
EqualityContract
protected override Type EqualityContract { get; }
Property Value
Methods
Deconstruct(out string?, out string?, out string?, out string?, out string?, out string?, out TableOptions, out DefaultNullable)
public void Deconstruct(out string? TableName, out string? DatabaseName, out string? SchemaName, out string? ServerName, out string? StatementHeader, out string? StatementFooter, out TableOptions TableOptions, out DefaultNullable DefaultNullable)
Parameters
TableNamestringDatabaseNamestringSchemaNamestringServerNamestringStatementHeaderstringStatementFooterstringTableOptionsTableOptionsDefaultNullableDefaultNullable
Equals(CreateTableOptions?)
public override sealed bool Equals(CreateTableOptions? other)
Parameters
otherCreateTableOptions
Returns
Equals(CreateTempTableOptions?)
public bool Equals(CreateTempTableOptions? other)
Parameters
otherCreateTempTableOptions
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
PrintMembers(StringBuilder)
protected override bool PrintMembers(StringBuilder builder)
Parameters
builderStringBuilder
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(CreateTempTableOptions?, CreateTempTableOptions?)
public static bool operator ==(CreateTempTableOptions? left, CreateTempTableOptions? right)
Parameters
leftCreateTempTableOptionsrightCreateTempTableOptions
Returns
operator !=(CreateTempTableOptions?, CreateTempTableOptions?)
public static bool operator !=(CreateTempTableOptions? left, CreateTempTableOptions? right)
Parameters
leftCreateTempTableOptionsrightCreateTempTableOptions