Show / Hide Table of Contents

Interface IDalConfiguration

数据访问配置接口

Namespace: DapperDal
Assembly: DapperDal.dll
Syntax
public interface IDalConfiguration

Properties

| Improve this Doc View Source

Buffered

实体集合返回前是否要缓冲(ToList)

Declaration
bool Buffered { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

DalImplementor

数据访问实现实例

Declaration
IDalImplementor DalImplementor { get; set; }
Property Value
Type Description
IDalImplementor
| Improve this Doc View Source

DefaultMapper

默认实体映射类型

Declaration
Type DefaultMapper { get; set; }
Property Value
Type Description
Type
| Improve this Doc View Source

Dialect

SQL方言实例

Declaration
ISqlDialect Dialect { get; set; }
Property Value
Type Description
ISqlDialect
| Improve this Doc View Source

MappingAssemblies

实体映射类型检索程序集

Declaration
IList<Assembly> MappingAssemblies { get; set; }
Property Value
Type Description
IList<Assembly>
| Improve this Doc View Source

Nolock

生成SQL时,是否添加 WITH (NOLOCK)

Declaration
bool Nolock { get; set; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

OutputSql

SQL输出方法

Declaration
Action<string> OutputSql { get; set; }
Property Value
Type Description
Action<System.String>

Methods

| Improve this Doc View Source

ClearCache()

清空实体映射类型缓存

Declaration
void ClearCache()
| Improve this Doc View Source

GetMap(Type)

获取实体映射类型

Declaration
IClassMapper GetMap(Type entityType)
Parameters
Type Name Description
Type entityType

实体类型

Returns
Type Description
IClassMapper

实体映射类型

| Improve this Doc View Source

GetMap<T>()

获取实体映射类型

Declaration
IClassMapper GetMap<T>()where T : class
Returns
Type Description
IClassMapper

实体映射类型

Type Parameters
Name Description
T

实体类型

| Improve this Doc View Source

GetNextGuid()

获取新的GUID

Declaration
Guid GetNextGuid()
Returns
Type Description
Guid

新的GUID

| Improve this Doc View Source

SetMappingAssemblies(IList<Assembly>)

设置实体映射类型检索程序集

Declaration
void SetMappingAssemblies(IList<Assembly> assemblies)
Parameters
Type Name Description
IList<Assembly> assemblies

实体映射类型检索程序集

Extension Methods

SortingExtensions.ToSortable(Object)
  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2017 Microsoft
Generated by DocFX