Show / Hide Table of Contents

Class BasePredicate

谓词基类

Inheritance
System.Object
BasePredicate
BetweenPredicate<T>
ComparePredicate
Namespace: DapperDal.Predicate
Assembly: DapperDal.dll
Syntax
public abstract class BasePredicate : object, IBasePredicate, IPredicate

Properties

| Improve this Doc View Source

PropertyName

属性名

Declaration
public string PropertyName { get; set; }
Property Value
Type Description
System.String
Implements
IBasePredicate.PropertyName

Methods

| Improve this Doc View Source

GetColumnName(Type, ISqlGenerator, String)

获取字段名

Declaration
protected virtual string GetColumnName(Type entityType, ISqlGenerator sqlGenerator, string propertyName)
Parameters
Type Name Description
Type entityType

实体类型

ISqlGenerator sqlGenerator

SQL生成器

System.String propertyName

属性名

Returns
Type Description
System.String

字段名

| Improve this Doc View Source

GetSql(ISqlGenerator, IDictionary<String, Object>)

返回根据参数使用SQL生成器生成的SQL语句

Declaration
public abstract 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语句

Implements
IPredicate.GetSql(ISqlGenerator, IDictionary<String, Object>)

Extension Methods

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