Interface IContract
Контракт.
Inherited Members
Namespace: Ascon.Polynom.Api
Assembly: Ascon.Polynom.Api.dll
Syntax
public interface IContract : IAbsoluteCodeableApiObject, ICodeableApiObject, IAbleToHaveChangeableName, IAbleToHaveName, IAbleToHaveDescription, IAbleToHaveId, IApiObject, IApiEntity, INotifyPropertyChanged
Properties
AllPropertySources
Возвращает коллекцию всех определений свойств данного контракта.
Declaration
IApiReadOnlyCollection<IPropertySource> AllPropertySources { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IPropertySource> |
ContractPropertySources
Возвращает коллекцию контрактных источников свойств.
Declaration
IApiReadOnlyCollection<IContractPropertySource> ContractPropertySources { get; }
Property Value
| Type | Description |
|---|---|
| IApiReadOnlyCollection<IContractPropertySource> |
Methods
CanCreatePropertySource(ILinkDefinitionEnd, IConceptPropertySource)
Возвращает признак того, что можно создавать источник свойства с данным набором параметров.
Declaration
bool CanCreatePropertySource(ILinkDefinitionEnd linkDefinitionEnd, IConceptPropertySource linkedConceptPropertySource)
Parameters
| Type | Name | Description |
|---|---|---|
| ILinkDefinitionEnd | linkDefinitionEnd | Конец определения связи. |
| IConceptPropertySource | linkedConceptPropertySource | Источник связанного свойства. |
Returns
| Type | Description |
|---|---|
| bool | true, если можно; иначе false. |
CanCreatePropertySource(IPropertyDefinition)
Возвращает признак того, что можно создавать источник свойства с данным набором параметров.
Declaration
bool CanCreatePropertySource(IPropertyDefinition definition)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyDefinition | definition | Определение свойства. |
Returns
| Type | Description |
|---|---|
| bool | true, если можно; иначе false. |
CanCreatePropertySource(IPropertyDefinition, ILinkDefinitionEnd)
Возвращает признак того, что можно создавать источник свойства с данным набором параметров.
Declaration
bool CanCreatePropertySource(IPropertyDefinition definition, ILinkDefinitionEnd linkDefinitionEnd)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyDefinition | definition | Определение свойства. |
| ILinkDefinitionEnd | linkDefinitionEnd | Конец определения связи. |
Returns
| Type | Description |
|---|---|
| bool | true, если можно; иначе false. |
CreatePropertySource(ILinkDefinitionEnd, IConceptPropertySource, Guid?, ObjectStorageType)
Создает источник связанного контрактного свойства.
Declaration
IPropertySource CreatePropertySource(ILinkDefinitionEnd linkDefinitionEnd, IConceptPropertySource linkedConceptPropertySource, Guid? id = null, ObjectStorageType storageType = ObjectStorageType.Persistent)
Parameters
| Type | Name | Description |
|---|---|---|
| ILinkDefinitionEnd | linkDefinitionEnd | Конец связи. |
| IConceptPropertySource | linkedConceptPropertySource | Источник связанного свойства в понятии. |
| Guid? | id | Идентификатор. |
| ObjectStorageType | storageType | Тип хранения. |
Returns
| Type | Description |
|---|---|
| IPropertySource | Созданный источник связанного контрактного свойства. |
CreatePropertySource(IPropertyDefinition, ILinkDefinitionEnd, Guid?, ObjectStorageType)
Создает источник связанного собственного свойства.
Declaration
IPropertySource CreatePropertySource(IPropertyDefinition definition, ILinkDefinitionEnd linkDefinitionEnd, Guid? id = null, ObjectStorageType storageType = ObjectStorageType.Persistent)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyDefinition | definition | Определение свойства. |
| ILinkDefinitionEnd | linkDefinitionEnd | Конец связи. |
| Guid? | id | Идентификатор. |
| ObjectStorageType | storageType | Тип хранения. |
Returns
| Type | Description |
|---|---|
| IPropertySource | Созданный источник связанного собственного свойства. |
CreatePropertySource(IPropertyDefinition, Guid?, ObjectStorageType)
Создает источник свойства.
Declaration
IPropertySource CreatePropertySource(IPropertyDefinition definition, Guid? id = null, ObjectStorageType storageType = ObjectStorageType.Persistent)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyDefinition | definition | Определение свойства. |
| Guid? | id | Идентификатор. |
| ObjectStorageType | storageType | Тип хранения. |
Returns
| Type | Description |
|---|---|
| IPropertySource | Созданный источник свойства. |
DeletePropertySource(IPropertySource)
Удаляет источник свойства из контракта.
Declaration
bool DeletePropertySource(IPropertySource propertySource)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertySource | propertySource | Источник свойства. |
Returns
| Type | Description |
|---|---|
| bool |
|
GetContractPropertySource(IPropertySource)
Возвращает контрактный источник свойства по источнику свойства.
Declaration
IContractPropertySource GetContractPropertySource(IPropertySource propertySource)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertySource | propertySource | Источник свойства. |
Returns
| Type | Description |
|---|---|
| IContractPropertySource | Контрактный источник свойства. |
GetContractRealization(IPropertyOwner)
Возвращает реализацию контракта.
Declaration
IContractRealization GetContractRealization(IPropertyOwner propertyOwner)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyOwner | propertyOwner | Владелец свойств. |
Returns
| Type | Description |
|---|---|
| IContractRealization | Реализация контракта (или null). |
GetPropertySource(string)
Возвращает источник определения свойства по коду определения свойства.
Declaration
IPropertySource GetPropertySource(string propDefCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | propDefCode | Код определения свойства. |
Returns
| Type | Description |
|---|---|
| IPropertySource | Источник свойства. |