Skip to main content

OrmLiteDialectProviderExtensions

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public static class OrmLiteDialectProviderExtensions : object

Methods

GetParam(IOrmLiteDialectProvider, String, String)

View Source
Declaration
public static string GetParam(this IOrmLiteDialectProvider dialect, string name, string format)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
System.Stringname
System.Stringformat

GetParam(IOrmLiteDialectProvider, String)

View Source
Declaration
public static string GetParam(this IOrmLiteDialectProvider dialect, string name)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
System.Stringname

GetParam(IOrmLiteDialectProvider, Int32)

View Source
Declaration
public static string GetParam(this IOrmLiteDialectProvider dialect, int indexNo = 0)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
System.Int32indexNo

ToFieldName(IOrmLiteDialectProvider, String)

View Source
Declaration
public static string ToFieldName(this IOrmLiteDialectProvider dialect, string paramName)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
System.StringparamName

FmtTable(String, IOrmLiteDialectProvider)

View Source
Declaration
public static string FmtTable(this string tableName, IOrmLiteDialectProvider dialect = null)
Returns

System.String

Parameters
TypeName
System.StringtableName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

FmtColumn(String, IOrmLiteDialectProvider)

View Source
Declaration
public static string FmtColumn(this string columnName, IOrmLiteDialectProvider dialect = null)
Returns

System.String

Parameters
TypeName
System.StringcolumnName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

GetQuotedColumnName(IOrmLiteDialectProvider, FieldDefinition)

View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
ServiceStack.OrmLite.FieldDefinitionfieldDef

GetQuotedColumnName(IOrmLiteDialectProvider, ModelDefinition, FieldDefinition)

View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, ModelDefinition tableDef, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
ServiceStack.OrmLite.ModelDefinitiontableDef
ServiceStack.OrmLite.FieldDefinitionfieldDef

GetQuotedColumnName(IOrmLiteDialectProvider, ModelDefinition, String, FieldDefinition)

View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, ModelDefinition tableDef, string tableAlias, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
ServiceStack.OrmLite.ModelDefinitiontableDef
System.StringtableAlias
ServiceStack.OrmLite.FieldDefinitionfieldDef

GetQuotedColumnName(IOrmLiteDialectProvider, ModelDefinition, String)

View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, ModelDefinition tableDef, string fieldName)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
ServiceStack.OrmLite.ModelDefinitiontableDef
System.StringfieldName

GetQuotedColumnName(IOrmLiteDialectProvider, ModelDefinition, String, String)

View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, ModelDefinition tableDef, string tableAlias, string fieldName)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
ServiceStack.OrmLite.ModelDefinitiontableDef
System.StringtableAlias
System.StringfieldName

FromDbValue(IOrmLiteDialectProvider, IDataReader, Int32, Type)

View Source
Declaration
public static object FromDbValue(this IOrmLiteDialectProvider dialect, IDataReader reader, int columnIndex, Type type)
Returns

System.Object

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
IDataReaderreader
System.Int32columnIndex
Typetype

GetConverter<T>(IOrmLiteDialectProvider)

View Source
Declaration
public static IOrmLiteConverter GetConverter<T>(this IOrmLiteDialectProvider dialect)
Returns

ServiceStack.OrmLite.IOrmLiteConverter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
Type Parameters
  • T

HasConverter(IOrmLiteDialectProvider, Type)

View Source
Declaration
public static bool HasConverter(this IOrmLiteDialectProvider dialect, Type type)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
Typetype

GetStringConverter(IOrmLiteDialectProvider)

View Source
Declaration
public static StringConverter GetStringConverter(this IOrmLiteDialectProvider dialect)
Returns

ServiceStack.OrmLite.Converters.StringConverter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

GetDecimalConverter(IOrmLiteDialectProvider)

View Source
Declaration
public static DecimalConverter GetDecimalConverter(this IOrmLiteDialectProvider dialect)
Returns

ServiceStack.OrmLite.Converters.DecimalConverter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

GetDateTimeConverter(IOrmLiteDialectProvider)

View Source
Declaration
public static DateTimeConverter GetDateTimeConverter(this IOrmLiteDialectProvider dialect)
Returns

ServiceStack.OrmLite.Converters.DateTimeConverter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

IsMySqlConnector(IOrmLiteDialectProvider)

View Source
Declaration
public static bool IsMySqlConnector(this IOrmLiteDialectProvider dialect)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

InitDbParam(IOrmLiteDialectProvider, IDbDataParameter, Type)

View Source
Declaration
public static void InitDbParam(this IOrmLiteDialectProvider dialect, IDbDataParameter dbParam, Type columnType)
Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
IDbDataParameterdbParam
TypecolumnType

InitDbParam(IOrmLiteDialectProvider, IDbDataParameter, Type, Object)

View Source
Declaration
public static void InitDbParam(this IOrmLiteDialectProvider dialect, IDbDataParameter dbParam, Type columnType, object value)
Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
IDbDataParameterdbParam
TypecolumnType
System.Objectvalue

SqlSpread<T>(IOrmLiteDialectProvider, T[])

View Source
Declaration
public static string SqlSpread<T>(this IOrmLiteDialectProvider dialect, params T[] values)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
<T>[]values
Type Parameters
  • T

ToAddColumnStatement(IOrmLiteDialectProvider, Type, FieldDefinition)

View Source
Declaration
public static string ToAddColumnStatement(this IOrmLiteDialectProvider dialect, Type modelType, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
TypemodelType
ServiceStack.OrmLite.FieldDefinitionfieldDef

ToAlterColumnStatement(IOrmLiteDialectProvider, Type, FieldDefinition)

View Source
Declaration
public static string ToAlterColumnStatement(this IOrmLiteDialectProvider dialect, Type modelType, FieldDefinition fieldDef)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
TypemodelType
ServiceStack.OrmLite.FieldDefinitionfieldDef

ToChangeColumnNameStatement(IOrmLiteDialectProvider, Type, FieldDefinition, String)

View Source
Declaration
public static string ToChangeColumnNameStatement(this IOrmLiteDialectProvider dialect, Type modelType, FieldDefinition fieldDef, string oldColumnName)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
TypemodelType
ServiceStack.OrmLite.FieldDefinitionfieldDef
System.StringoldColumnName

ToRenameColumnStatement(IOrmLiteDialectProvider, Type, String, String)

View Source
Declaration
public static string ToRenameColumnStatement(this IOrmLiteDialectProvider dialect, Type modelType, string oldColumnName, string newColumnName)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
TypemodelType
System.StringoldColumnName
System.StringnewColumnName

ToDropColumnStatement(IOrmLiteDialectProvider, Type, String)

View Source
Declaration
public static string ToDropColumnStatement(this IOrmLiteDialectProvider dialect, Type modelType, string columnName)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect
TypemodelType
System.StringcolumnName