Table of Contents

Class SqlDialect

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

Represents a specific SQL dialect.

public class SqlDialect : IEquatable<SqlDialect>
Inheritance
SqlDialect
Implements
Inherited Members

Constructors

SqlDialect(string)

Creates a new SqlDialect instance.

public SqlDialect(string name)

Parameters

name string

Name of this dialect.

Properties

Name

Name of this dialect.

public string Name { get; }

Property Value

string

Methods

Equals(SqlDialect?)

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

[Pure]
public bool Equals(SqlDialect? other)

Parameters

other SqlDialect

An object to compare with this object.

Returns

bool

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

Equals(object?)

Determines whether the specified object is equal to the current object.

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

Parameters

obj object

The object to compare with the current object.

Returns

bool

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

GetHashCode()

Serves as the default hash function.

[Pure]
public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string representation of this SqlDialect instance.

[Pure]
public override string ToString()

Returns

string

String representation.

Operators

operator ==(SqlDialect?, SqlDialect?)

Checks if a is equal to b.

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

Parameters

a SqlDialect

First operand.

b SqlDialect

Second operand.

Returns

bool

true when operands are equal, otherwise false.

operator !=(SqlDialect?, SqlDialect?)

Checks if a is not equal to b.

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

Parameters

a SqlDialect

First operand.

b SqlDialect

Second operand.

Returns

bool

true when operands are not equal, otherwise false.