Interface IDalConfiguration
数据访问配置接口
Namespace: DapperDal
Assembly: DapperDal.dll
Syntax
public interface IDalConfiguration
Properties
| Improve this Doc View SourceBuffered
实体集合返回前是否要缓冲(ToList)
Declaration
bool Buffered { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DalImplementor
数据访问实现实例
Declaration
IDalImplementor DalImplementor { get; set; }
Property Value
Type | Description |
---|---|
IDalImplementor |
DefaultMapper
默认实体映射类型
Declaration
Type DefaultMapper { get; set; }
Property Value
Type | Description |
---|---|
Type |
Dialect
SQL方言实例
Declaration
ISqlDialect Dialect { get; set; }
Property Value
Type | Description |
---|---|
ISqlDialect |
MappingAssemblies
实体映射类型检索程序集
Declaration
IList<Assembly> MappingAssemblies { get; set; }
Property Value
Type | Description |
---|---|
IList<Assembly> |
Nolock
生成SQL时,是否添加 WITH (NOLOCK)
Declaration
bool Nolock { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
OutputSql
SQL输出方法
Declaration
Action<string> OutputSql { get; set; }
Property Value
Type | Description |
---|---|
Action<System.String> |
Methods
| Improve this Doc View SourceClearCache()
清空实体映射类型缓存
Declaration
void ClearCache()
GetMap(Type)
获取实体映射类型
Declaration
IClassMapper GetMap(Type entityType)
Parameters
Type | Name | Description |
---|---|---|
Type | entityType | 实体类型 |
Returns
Type | Description |
---|---|
IClassMapper | 实体映射类型 |
GetMap<T>()
获取实体映射类型
Declaration
IClassMapper GetMap<T>()where T : class
Returns
Type | Description |
---|---|
IClassMapper | 实体映射类型 |
Type Parameters
Name | Description |
---|---|
T | 实体类型 |
GetNextGuid()
获取新的GUID
Declaration
Guid GetNextGuid()
Returns
Type | Description |
---|---|
Guid | 新的GUID |
SetMappingAssemblies(IList<Assembly>)
设置实体映射类型检索程序集
Declaration
void SetMappingAssemblies(IList<Assembly> assemblies)
Parameters
Type | Name | Description |
---|---|---|
IList<Assembly> | assemblies | 实体映射类型检索程序集 |