C# Класс Azavea.Open.DAO.Criteria.DaoCriteria

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
BoolType BooleanOperator
Expressions List
Limit int
Orders List
Start int

Открытые методы

Метод Описание
Clear ( ) : void

Completely clears the object so that it may be used over again.

CopyFrom ( DaoCriteria other ) : void

Makes this DaoCriteria into a copy of the other one. Any existing orders, expressions, etc. on this one are lost.

DaoCriteria ( ) : System

Constructs a blank criteria, which will return all records unless you customize it. All expressions added to it will be ANDed together.

DaoCriteria ( BooleanOperator howToAddExpressions ) : System

Constructs a blank criteria, which will return all records unless you customize it.

DaoCriteria ( IExpression firstExpr ) : System

Constructs a criteria with one expression. May be handy for cases where you only need one expression.

DaoCriteria ( IExpression firstExpr, BooleanOperator howToAddExpressions ) : System

Constructs a criteria with one expression.

Описание методов

Clear() публичный Метод

Completely clears the object so that it may be used over again.
public Clear ( ) : void
Результат void

CopyFrom() публичный Метод

Makes this DaoCriteria into a copy of the other one. Any existing orders, expressions, etc. on this one are lost.
public CopyFrom ( DaoCriteria other ) : void
other DaoCriteria Criteria to copy everything from.
Результат void

DaoCriteria() публичный Метод

Constructs a blank criteria, which will return all records unless you customize it. All expressions added to it will be ANDed together.
public DaoCriteria ( ) : System
Результат System

DaoCriteria() публичный Метод

Constructs a blank criteria, which will return all records unless you customize it.
public DaoCriteria ( BooleanOperator howToAddExpressions ) : System
howToAddExpressions BooleanOperator How expressions will be added together. Determines /// if we do exp1 AND exp2 AND exp3, or if we do /// exp1 OR exp2 OR exp3.
Результат System

DaoCriteria() публичный Метод

Constructs a criteria with one expression. May be handy for cases where you only need one expression.
public DaoCriteria ( IExpression firstExpr ) : System
firstExpr IExpression The first expression to add.
Результат System

DaoCriteria() публичный Метод

Constructs a criteria with one expression.
public DaoCriteria ( IExpression firstExpr, BooleanOperator howToAddExpressions ) : System
firstExpr IExpression The first expression to add.
howToAddExpressions BooleanOperator How expressions will be added together. Determines /// if we do exp1 AND exp2 AND exp3, or if we do /// exp1 OR exp2 OR exp3.
Результат System

Описание свойств

BoolType публичное свойство

Whether this is an "AND" criteria or an "OR" criteria.
public BooleanOperator BoolType
Результат BooleanOperator

Expressions публичное свойство

The individual expressions that make up this criteria. Defaults to empty. Expressions can be added, cleared, etc.
public List Expressions
Результат List

Limit публичное свойство

Used to limit the data returned, only data rows Start to Start + Limit will be returned. A value of -1 means ignore this parameter.
public int Limit
Результат int

Orders публичное свойство

The list of properties to sort on. Defaults to empty, you may add, clear, reorder, etc.
public List Orders
Результат List

Start публичное свойство

Used to limit the data returned, only data rows Start to Start + Limit will be returned. A value of -1 means ignore this parameter.
public int Start
Результат int