Class ExistsPredicate<TSub>
是否存在的谓词类
Inheritance
System.Object
ExistsPredicate<TSub>
Namespace: DapperDal.Predicate
Assembly: DapperDal.dll
Syntax
public class ExistsPredicate<TSub> : object, IExistsPredicate, IPredicate where TSub : class
Type Parameters
| Name | Description |
|---|---|
| TSub |
Properties
| Improve this Doc View SourceNot
比较类型是否逻辑非
Declaration
public bool Not { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Implements
| Improve this Doc View SourcePredicate
子谓词
Declaration
public IPredicate Predicate { get; set; }
Property Value
| Type | Description |
|---|---|
| IPredicate |
Implements
Methods
| Improve this Doc View SourceGetClassMapper(Type, IDalConfiguration)
获取实体类型的映射器
Declaration
protected virtual IClassMapper GetClassMapper(Type type, IDalConfiguration configuration)
Parameters
| Type | Name | Description |
|---|---|---|
| Type | type | 实体类型 |
| IDalConfiguration | configuration | 数据访问配置 |
Returns
| Type | Description |
|---|---|
| IClassMapper | 实体类型的映射器 |
GetSql(ISqlGenerator, IDictionary<String, Object>)
返回根据参数使用SQL生成器生成的SQL语句
Declaration
public string GetSql(ISqlGenerator sqlGenerator, IDictionary<string, object> parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| ISqlGenerator | sqlGenerator | SQL生成器 |
| IDictionary<System.String, System.Object> | parameters | 参数 |
Returns
| Type | Description |
|---|---|
| System.String | SQL语句 |