ColumnProxy クラス
列名から OData フィルター式を作成するための Fluent プロキシ。
colによって返されます。 演算子のオーバーロードとメソッドは、QueryBuilder.where()に渡すことができるFilterExpressionインスタンスを生成します。
例:
from PowerPlatform.Dataverse.models.filters import col
expr = col("statecode") == 0 # equality
expr = col("revenue") > 1_000_000 # comparison
expr = col("name").like("Contoso%") # startswith
expr = col("name").is_null() # null check
expr = col("statecode").in_([0, 1]) # in
コンストラクター
ColumnProxy(name: str)
パラメーター
| 名前 | 説明 |
|---|---|
|
name
必須
|
|
メソッド
| between |
フィルター間: |
| contains |
フィルターが含まれています: |
| endswith |
Endswith filter: |
| in_ |
|
| is_not_null |
列が null ではない: |
| is_null |
列が null と等しい: |
| like |
同等の最も近い OData にコンパイルされたパターン マッチ フィルター。 |
| not_between |
Not-between フィルター: |
| not_in |
|
| not_like |
否定パターン 一致フィルター。は、ルール like 反転します。 |
| startswith |
startswith filter: |
between
フィルター間: (column ge lo and column le hi)。
between(lo: Any, hi: Any) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
lo
必須
|
|
|
hi
必須
|
|
contains
フィルターが含まれています: contains(column, value)。
contains(value: str) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
value
必須
|
|
endswith
Endswith filter: endswith(column, value)。
endswith(value: str) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
value
必須
|
|
in_
Microsoft.Dynamics.CRM.Inを使用したフィルター。
in_(values: Collection[Any]) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
values
必須
|
空でない値のコレクション。 |
例外
| 型 | 説明 |
|---|---|
|
|
is_not_null
列が null ではない: column ne null。
is_not_null() -> FilterExpression
is_null
列が null と等しい: column eq null。
is_null() -> FilterExpression
like
同等の最も近い OData にコンパイルされたパターン マッチ フィルター。
like(pattern: str) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
pattern
必須
|
LIKE スタイルのパターン文字列。 |
例外
| 型 | 説明 |
|---|---|
|
パターンを 1 つの OData 関数に縮小できない場合。 |
not_between
Not-between フィルター: not (column ge lo and column le hi)。
not_between(lo: Any, hi: Any) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
lo
必須
|
|
|
hi
必須
|
|
not_in
Microsoft.Dynamics.CRM.NotIn を使用した Not-in フィルター。
not_in(values: Collection[Any]) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
values
必須
|
空でない値のコレクション。 |
例外
| 型 | 説明 |
|---|---|
|
|
not_like
startswith
startswith filter: startswith(column, value)。
startswith(value: str) -> FilterExpression
パラメーター
| 名前 | 説明 |
|---|---|
|
value
必須
|
|