Class GenericQuoter
Inheritance
GenericQuoter
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public class GenericQuoter : IQuoter
Properties
|
Edit this page
View Source
CloseQuote
Returns the closing quote identifier - " is the standard according to the specification
Declaration
public virtual string CloseQuote { get; }
Property Value
|
Edit this page
View Source
CloseQuoteEscapeString
Declaration
public virtual string CloseQuoteEscapeString { get; }
Property Value
|
Edit this page
View Source
EscapeValueQuote
Declaration
public virtual string EscapeValueQuote { get; }
Property Value
|
Edit this page
View Source
IdentifierSeparator
Gets the separator between identifiers (e.g. the dot between SCHEMA.TABLENAME)
Declaration
public virtual string IdentifierSeparator { get; }
Property Value
|
Edit this page
View Source
OpenQuote
Returns the opening quote identifier - " is the standard according to the specification
Declaration
public virtual string OpenQuote { get; }
Property Value
|
Edit this page
View Source
OpenQuoteEscapeString
Declaration
public virtual string OpenQuoteEscapeString { get; }
Property Value
|
Edit this page
View Source
ValueQuote
Declaration
public virtual string ValueQuote { get; }
Property Value
Methods
|
Edit this page
View Source
CreateSchemaPrefixedQuotedIdentifier(string, string)
Declaration
protected virtual string CreateSchemaPrefixedQuotedIdentifier(string quotedSchemaName, string quotedIdentifier)
Parameters
Type |
Name |
Description |
string |
quotedSchemaName |
|
string |
quotedIdentifier |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatAnsiString(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatBool(bool value)
Parameters
Type |
Name |
Description |
bool |
value |
|
Returns
|
Edit this page
View Source
Declaration
protected virtual string FormatByteArray(byte[] value)
Parameters
Type |
Name |
Description |
byte[] |
value |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatChar(char value)
Parameters
Type |
Name |
Description |
char |
value |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatDateTime(DateTime value)
Parameters
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatDateTimeOffset(DateTimeOffset value)
Parameters
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatEnum(object value)
Parameters
Type |
Name |
Description |
object |
value |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatGuid(Guid value)
Parameters
Type |
Name |
Description |
Guid |
value |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatNationalString(string value)
Parameters
Type |
Name |
Description |
string |
value |
|
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatNull()
Returns
|
Edit this page
View Source
Declaration
public virtual string FormatSystemMethods(SystemMethods value)
Parameters
Returns
|
Edit this page
View Source
FromTimeSpan(TimeSpan)
Declaration
public virtual string FromTimeSpan(TimeSpan value)
Parameters
Returns
|
Edit this page
View Source
IsQuoted(string)
Returns true is the value starts and ends with a close quote
Declaration
public virtual bool IsQuoted(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
Quote(string)
Returns a quoted string that has been correctly escaped
Declaration
public virtual string Quote(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
QuoteColumnName(string)
Declaration
public virtual string QuoteColumnName(string columnName)
Parameters
Type |
Name |
Description |
string |
columnName |
|
Returns
|
Edit this page
View Source
QuoteConstraintName(string, string)
Declaration
public virtual string QuoteConstraintName(string constraintName, string schemaName = null)
Parameters
Type |
Name |
Description |
string |
constraintName |
|
string |
schemaName |
|
Returns
|
Edit this page
View Source
QuoteIndexName(string, string)
Declaration
public virtual string QuoteIndexName(string indexName, string schemaName)
Parameters
Returns
|
Edit this page
View Source
QuoteSchemaName(string)
Declaration
public virtual string QuoteSchemaName(string schemaName)
Parameters
Type |
Name |
Description |
string |
schemaName |
The schema name to quote
|
Returns
Type |
Description |
string |
The quoted schema name
|
|
Edit this page
View Source
QuoteSequenceName(string, string)
Declaration
public virtual string QuoteSequenceName(string sequenceName, string schemaName)
Parameters
Returns
|
Edit this page
View Source
QuoteTableName(string, string)
Declaration
public virtual string QuoteTableName(string tableName, string schemaName = null)
Parameters
Returns
|
Edit this page
View Source
QuoteValue(object)
Quotes a value to be embedded into an SQL script/statement
Declaration
public virtual string QuoteValue(object value)
Parameters
Type |
Name |
Description |
object |
value |
The value to be quoted
|
Returns
Type |
Description |
string |
The quoted value
|
|
Edit this page
View Source
ShouldQuote(string)
Declaration
[ContractAnnotation("name:null => false")]
protected virtual bool ShouldQuote(string name)
Parameters
Type |
Name |
Description |
string |
name |
|
Returns
|
Edit this page
View Source
UnQuote(string)
Provides an unquoted, unescaped string
Declaration
public virtual string UnQuote(string quoted)
Parameters
Type |
Name |
Description |
string |
quoted |
|
Returns
Implements