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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
System.String | name |
System.String | format |
GetParam(IOrmLiteDialectProvider, String)
View Source
Declaration
public static string GetParam(this IOrmLiteDialectProvider dialect, string name)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
System.String | name |
GetParam(IOrmLiteDialectProvider, Int32)
View Source
Declaration
public static string GetParam(this IOrmLiteDialectProvider dialect, int indexNo = 0)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
System.Int32 | indexNo |
ToFieldName(IOrmLiteDialectProvider, String)
View Source
Declaration
public static string ToFieldName(this IOrmLiteDialectProvider dialect, string paramName)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
System.String | paramName |
FmtTable(String, IOrmLiteDialectProvider)
View Source
Declaration
public static string FmtTable(this string tableName, IOrmLiteDialectProvider dialect = null)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | tableName |
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
FmtColumn(String, IOrmLiteDialectProvider)
View Source
Declaration
public static string FmtColumn(this string columnName, IOrmLiteDialectProvider dialect = null)
Returns
System.String
Parameters
Type | Name |
---|---|
System.String | columnName |
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
GetQuotedColumnName(IOrmLiteDialectProvider, FieldDefinition)
View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, FieldDefinition fieldDef)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
GetQuotedColumnName(IOrmLiteDialectProvider, ModelDefinition, FieldDefinition)
View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, ModelDefinition tableDef, FieldDefinition fieldDef)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
ServiceStack.OrmLite.ModelDefinition | tableDef |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
ServiceStack.OrmLite.ModelDefinition | tableDef |
System.String | tableAlias |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
GetQuotedColumnName(IOrmLiteDialectProvider, ModelDefinition, String)
View Source
Declaration
public static string GetQuotedColumnName(this IOrmLiteDialectProvider dialect, ModelDefinition tableDef, string fieldName)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
ServiceStack.OrmLite.ModelDefinition | tableDef |
System.String | fieldName |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
ServiceStack.OrmLite.ModelDefinition | tableDef |
System.String | tableAlias |
System.String | fieldName |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
IDataReader | reader |
System.Int32 | columnIndex |
Type | type |
GetConverter<T>(IOrmLiteDialectProvider)
View Source
Declaration
public static IOrmLiteConverter GetConverter<T>(this IOrmLiteDialectProvider dialect)
Returns
ServiceStack.OrmLite.IOrmLiteConverter
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type Parameters
T
HasConverter(IOrmLiteDialectProvider, Type)
View Source
Declaration
public static bool HasConverter(this IOrmLiteDialectProvider dialect, Type type)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type | type |
GetStringConverter(IOrmLiteDialectProvider)
View Source
Declaration
public static StringConverter GetStringConverter(this IOrmLiteDialectProvider dialect)
Returns
ServiceStack.OrmLite.Converters.StringConverter
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
GetDecimalConverter(IOrmLiteDialectProvider)
View Source
Declaration
public static DecimalConverter GetDecimalConverter(this IOrmLiteDialectProvider dialect)
Returns
ServiceStack.OrmLite.Converters.DecimalConverter
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
GetDateTimeConverter(IOrmLiteDialectProvider)
View Source
Declaration
public static DateTimeConverter GetDateTimeConverter(this IOrmLiteDialectProvider dialect)
Returns
ServiceStack.OrmLite.Converters.DateTimeConverter
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
IsMySqlConnector(IOrmLiteDialectProvider)
View Source
Declaration
public static bool IsMySqlConnector(this IOrmLiteDialectProvider dialect)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
InitDbParam(IOrmLiteDialectProvider, IDbDataParameter, Type)
View Source
Declaration
public static void InitDbParam(this IOrmLiteDialectProvider dialect, IDbDataParameter dbParam, Type columnType)
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
IDbDataParameter | dbParam |
Type | columnType |
InitDbParam(IOrmLiteDialectProvider, IDbDataParameter, Type, Object)
View Source
Declaration
public static void InitDbParam(this IOrmLiteDialectProvider dialect, IDbDataParameter dbParam, Type columnType, object value)
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
IDbDataParameter | dbParam |
Type | columnType |
System.Object | value |
SqlSpread<T>(IOrmLiteDialectProvider, T[])
View Source
Declaration
public static string SqlSpread<T>(this IOrmLiteDialectProvider dialect, params T[] values)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
<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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type | modelType |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
ToAlterColumnStatement(IOrmLiteDialectProvider, Type, FieldDefinition)
View Source
Declaration
public static string ToAlterColumnStatement(this IOrmLiteDialectProvider dialect, Type modelType, FieldDefinition fieldDef)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type | modelType |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type | modelType |
ServiceStack.OrmLite.FieldDefinition | fieldDef |
System.String | oldColumnName |
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
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type | modelType |
System.String | oldColumnName |
System.String | newColumnName |
ToDropColumnStatement(IOrmLiteDialectProvider, Type, String)
View Source
Declaration
public static string ToDropColumnStatement(this IOrmLiteDialectProvider dialect, Type modelType, string columnName)
Returns
System.String
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialect |
Type | modelType |
System.String | columnName |