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
Type | Name |
---|---|
IDbCommand | dbCmd |
Dialect(IDbCommand)
View Source
Declaration
public static IOrmLiteDialectProvider Dialect(this IDbCommand dbCmd)
Returns
ServiceStack.OrmLite.IOrmLiteDialectProvider
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
GetDialectProvider(IDbConnection)
View Source
Declaration
public static IOrmLiteDialectProvider GetDialectProvider(this IDbConnection db)
Returns
ServiceStack.OrmLite.IOrmLiteDialectProvider
Parameters
Type | Name |
---|---|
IDbConnection | db |
GetNamingStrategy(IDbConnection)
View Source
Declaration
public static INamingStrategy GetNamingStrategy(this IDbConnection db)
Returns
ServiceStack.OrmLite.INamingStrategy
Parameters
Type | Name |
---|---|
IDbConnection | db |
Dialect(IDbConnection)
View Source
Declaration
public static IOrmLiteDialectProvider Dialect(this IDbConnection db)
Returns
ServiceStack.OrmLite.IOrmLiteDialectProvider
Parameters
Type | Name |
---|---|
IDbConnection | db |
GetExecFilter(IOrmLiteDialectProvider)
View Source
Declaration
public static IOrmLiteExecFilter GetExecFilter(this IOrmLiteDialectProvider dialectProvider)
Returns
ServiceStack.OrmLite.IOrmLiteExecFilter
Parameters
Type | Name |
---|---|
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
GetExecFilter(IDbCommand)
View Source
Declaration
public static IOrmLiteExecFilter GetExecFilter(this IDbCommand dbCmd)
Returns
ServiceStack.OrmLite.IOrmLiteExecFilter
Parameters
Type | Name |
---|---|
IDbCommand | dbCmd |
GetExecFilter(IDbConnection)
View Source
Declaration
public static IOrmLiteExecFilter GetExecFilter(this IDbConnection db)
Returns
ServiceStack.OrmLite.IOrmLiteExecFilter
Parameters
Type | Name |
---|---|
IDbConnection | db |
SetLastCommandText(IDbConnection, String)
View Source
Declaration
public static void SetLastCommandText(this IDbConnection db, string sql)
Parameters
Type | Name |
---|---|
IDbConnection | db |
System.String | sql |
SetCommandTimeout(IDbConnection, Nullable<Int32>)
View Source
Declaration
public static void SetCommandTimeout(this IDbConnection db, int? commandTimeout)
Parameters
Type | Name |
---|---|
IDbConnection | db |
System.Nullable<System.Int32> | commandTimeout |
ToDbConnection(String)
View Source
Declaration
public static IDbConnection ToDbConnection(this string dbConnectionStringOrFilePath)
Returns
IDbConnection
Parameters
Type | Name |
---|---|
System.String | dbConnectionStringOrFilePath |
OpenDbConnection(String)
View Source
Declaration
public static IDbConnection OpenDbConnection(this string dbConnectionStringOrFilePath)
Returns
IDbConnection
Parameters
Type | Name |
---|---|
System.String | dbConnectionStringOrFilePath |
OpenReadOnlyDbConnection(String)
View Source
Declaration
public static IDbConnection OpenReadOnlyDbConnection(this string dbConnectionStringOrFilePath)
Returns
IDbConnection
Parameters
Type | Name |
---|---|
System.String | dbConnectionStringOrFilePath |
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
Type | Name |
---|---|
Type | modelType |
ToDbConnection(String, IOrmLiteDialectProvider)
View Source
Declaration
public static IDbConnection ToDbConnection(this string dbConnectionStringOrFilePath, IOrmLiteDialectProvider dialectProvider)
Returns
IDbConnection
Parameters
Type | Name |
---|---|
System.String | dbConnectionStringOrFilePath |
ServiceStack.OrmLite.IOrmLiteDialectProvider | dialectProvider |
ResetLogFactory(ILogFactory)
View Source
Declaration
public static void ResetLogFactory(ILogFactory logFactory = null)
Parameters
Type | Name |
---|---|
ServiceStack.Logging.ILogFactory | logFactory |