OneToManyRelationshipMetadata クラス

一対多エンティティリレーションシップのメタデータ。

コンストラクター

OneToManyRelationshipMetadata(schema_name: str, referenced_entity: str, referencing_entity: str, referenced_attribute: str, cascade_configuration: ~PowerPlatform.Dataverse.models.relationship.CascadeConfiguration = <factory>, referencing_attribute: str | None = None, additional_properties: ~typing.Dict[str, ~typing.Any] | None = None)

パラメーター

名前 説明
schema_name
必須
str

リレーションシップのスキーマ名 (例: "new_Account_Orders")。

referenced_entity
必須
str

参照先 (親) エンティティの論理名。

referencing_entity
必須
str

参照元 (子) エンティティの論理名。

referenced_attribute
必須
str

参照先エンティティ (通常は主キー) の属性。

cascade_configuration

連鎖動作の構成。

規定値: <factory>
referencing_attribute

参照元の属性の省略可能な名前 (通常は自動生成)。

規定値: None
additional_properties

Web API ペイロードに含める追加プロパティのオプションのディクテーション。 "IsValidForAdvancedFind"、"IsCustomizable"、"SecurityTypes" などの継承されたプロパティを設定する場合に便利です。これらは最後にマージされ、既定値をオーバーライドできます。

規定値: None

メソッド

to_dict

Web API JSON 形式に変換します。

例:


   >>> rel = OneToManyRelationshipMetadata(
   ...     schema_name="new_account_orders",
   ...     referenced_entity="account",
   ...     referencing_entity="new_order",
   ...     referenced_attribute="accountid"
   ... )
   >>> rel.to_dict()
   {
       '@odata.type': 'Microsoft.Dynamics.CRM.OneToManyRelationshipMetadata',
       'SchemaName': 'new_account_orders',
       'ReferencedEntity': 'account',
       'ReferencingEntity': 'new_order',
       'ReferencedAttribute': 'accountid',
       'CascadeConfiguration': {...}
   }

to_dict

Web API JSON 形式に変換します。

例:


   >>> rel = OneToManyRelationshipMetadata(
   ...     schema_name="new_account_orders",
   ...     referenced_entity="account",
   ...     referencing_entity="new_order",
   ...     referenced_attribute="accountid"
   ... )
   >>> rel.to_dict()
   {
       '@odata.type': 'Microsoft.Dynamics.CRM.OneToManyRelationshipMetadata',
       'SchemaName': 'new_account_orders',
       'ReferencedEntity': 'account',
       'ReferencingEntity': 'new_order',
       'ReferencedAttribute': 'accountid',
       'CascadeConfiguration': {...}
   }
to_dict() -> Dict[str, Any]

属性

additional_properties

additional_properties: Dict[str, Any] | None = None

cascade_configuration

cascade_configuration: CascadeConfiguration

referenced_attribute

referenced_attribute: str

referenced_entity

referenced_entity: str

referencing_attribute

referencing_attribute: str | None = None

referencing_entity

referencing_entity: str

schema_name

schema_name: str