Skip to main content

OrmLiteConfig

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

Properties

CommandTimeout

View Source
Declaration
public static int CommandTimeout { get; set; }

DialectProvider

View Source
Declaration
public static IOrmLiteDialectProvider DialectProvider { get; set; }

DisableColumnGuessFallback

View Source
Declaration
public static bool DisableColumnGuessFallback { get; set; }

StripUpperInLike

View Source
Declaration
public static bool StripUpperInLike { get; set; }

ResultsFilter

View Source
Declaration
public static IOrmLiteResultsFilter ResultsFilter { get; set; }

ExecFilter

View Source
Declaration
public static IOrmLiteExecFilter ExecFilter { get; set; }

BeforeExecFilter

View Source
Declaration
public static Action<IDbCommand> BeforeExecFilter { get; set; }

AfterExecFilter

View Source
Declaration
public static Action<IDbCommand> AfterExecFilter { get; set; }

InsertFilter

View Source
Declaration
public static Action<IDbCommand, object> InsertFilter { get; set; }

UpdateFilter

View Source
Declaration
public static Action<IDbCommand, object> UpdateFilter { get; set; }

SqlExpressionSelectFilter

View Source
Declaration
public static Action<IUntypedSqlExpression> SqlExpressionSelectFilter { get; set; }

LoadReferenceSelectFilter

View Source
Declaration
public static Func<Type, string, string> LoadReferenceSelectFilter { get; set; }

StringFilter

View Source
Declaration
public static Func<string, string> StringFilter { get; set; }

OnDbNullFilter

View Source
Declaration
public static Func<FieldDefinition, object> OnDbNullFilter { get; set; }

PopulatedObjectFilter

View Source
Declaration
public static Action<object> PopulatedObjectFilter { get; set; }

ExceptionFilter

View Source
Declaration
public static Action<IDbCommand, Exception> ExceptionFilter { get; set; }

ThrowOnError

View Source
Declaration
public static bool ThrowOnError { get; set; }

IsCaseInsensitive

View Source
Declaration
public static bool IsCaseInsensitive { get; set; }

DeoptimizeReader

View Source
Declaration
public static bool DeoptimizeReader { get; set; }

SkipForeignKeys

View Source
Declaration
public static bool SkipForeignKeys { get; set; }

IncludeTablePrefixes

View Source
Declaration
public static bool IncludeTablePrefixes { get; set; }

SqlExpressionInitFilter

View Source
Declaration
public static Action<IUntypedSqlExpression> SqlExpressionInitFilter { get; set; }

ParamNameFilter

View Source
Declaration
public static Func<string, string> ParamNameFilter { get; set; }

OnModelDefinitionInit

View Source
Declaration
public static Action<ModelDefinition> OnModelDefinitionInit { get; set; }

Fields

IdField

View Source
Declaration
public const string IdField = null

SanitizeFieldNameForParamNameFn

View Source
Declaration
public static Func<string, string> SanitizeFieldNameForParamNameFn

Methods

GetDialectProvider(IDbCommand)

View Source
Declaration
public static IOrmLiteDialectProvider GetDialectProvider(this IDbCommand dbCmd)
Returns

ServiceStack.OrmLite.IOrmLiteDialectProvider

Parameters
TypeName
IDbCommanddbCmd

Dialect(IDbCommand)

View Source
Declaration
public static IOrmLiteDialectProvider Dialect(this IDbCommand dbCmd)
Returns

ServiceStack.OrmLite.IOrmLiteDialectProvider

Parameters
TypeName
IDbCommanddbCmd

GetDialectProvider(IDbConnection)

View Source
Declaration
public static IOrmLiteDialectProvider GetDialectProvider(this IDbConnection db)
Returns

ServiceStack.OrmLite.IOrmLiteDialectProvider

Parameters
TypeName
IDbConnectiondb

GetNamingStrategy(IDbConnection)

View Source
Declaration
public static INamingStrategy GetNamingStrategy(this IDbConnection db)
Returns

ServiceStack.OrmLite.INamingStrategy

Parameters
TypeName
IDbConnectiondb

Dialect(IDbConnection)

View Source
Declaration
public static IOrmLiteDialectProvider Dialect(this IDbConnection db)
Returns

ServiceStack.OrmLite.IOrmLiteDialectProvider

Parameters
TypeName
IDbConnectiondb

GetExecFilter(IOrmLiteDialectProvider)

View Source
Declaration
public static IOrmLiteExecFilter GetExecFilter(this IOrmLiteDialectProvider dialectProvider)
Returns

ServiceStack.OrmLite.IOrmLiteExecFilter

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider

GetExecFilter(IDbCommand)

View Source
Declaration
public static IOrmLiteExecFilter GetExecFilter(this IDbCommand dbCmd)
Returns

ServiceStack.OrmLite.IOrmLiteExecFilter

Parameters
TypeName
IDbCommanddbCmd

GetExecFilter(IDbConnection)

View Source
Declaration
public static IOrmLiteExecFilter GetExecFilter(this IDbConnection db)
Returns

ServiceStack.OrmLite.IOrmLiteExecFilter

Parameters
TypeName
IDbConnectiondb

SetLastCommandText(IDbConnection, String)

View Source
Declaration
public static void SetLastCommandText(this IDbConnection db, string sql)
Parameters
TypeName
IDbConnectiondb
System.Stringsql

SetCommandTimeout(IDbConnection, Nullable<Int32>)

View Source
Declaration
public static void SetCommandTimeout(this IDbConnection db, int? commandTimeout)
Parameters
TypeName
IDbConnectiondb
System.Nullable<System.Int32>commandTimeout

ToDbConnection(String)

View Source
Declaration
public static IDbConnection ToDbConnection(this string dbConnectionStringOrFilePath)
Returns

IDbConnection

Parameters
TypeName
System.StringdbConnectionStringOrFilePath

OpenDbConnection(String)

View Source
Declaration
public static IDbConnection OpenDbConnection(this string dbConnectionStringOrFilePath)
Returns

IDbConnection

Parameters
TypeName
System.StringdbConnectionStringOrFilePath

OpenReadOnlyDbConnection(String)

View Source
Declaration
public static IDbConnection OpenReadOnlyDbConnection(this string dbConnectionStringOrFilePath)
Returns

IDbConnection

Parameters
TypeName
System.StringdbConnectionStringOrFilePath

ClearCache()

View Source
Declaration
public static void ClearCache()

GetModelMetadata(Type)

View Source
Declaration
public static ModelDefinition GetModelMetadata(this Type modelType)
Returns

ServiceStack.OrmLite.ModelDefinition

Parameters
TypeName
TypemodelType

ToDbConnection(String, IOrmLiteDialectProvider)

View Source
Declaration
public static IDbConnection ToDbConnection(this string dbConnectionStringOrFilePath, IOrmLiteDialectProvider dialectProvider)
Returns

IDbConnection

Parameters
TypeName
System.StringdbConnectionStringOrFilePath
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider

ResetLogFactory(ILogFactory)

View Source
Declaration
public static void ResetLogFactory(ILogFactory logFactory = null)
Parameters
TypeName
ServiceStack.Logging.ILogFactorylogFactory