Interface IMetadataDefinitionService
Contains methods for working with metadata definitions
Namespace: ImageVault.Common.Services
Assembly: ImageVault.Common.dll
Syntax
public interface IMetadataDefinitionService : IService
Methods
Delete(Int32)
Delete a metadata definition
Declaration
void Delete(int id)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | id | The metadata definition id |
Find(MetadataDefinitionQuery)
Find and populate metadata definitions
Declaration
List<MetadataDefinition> Find(MetadataDefinitionQuery q)
Parameters
Type | Name | Description |
---|---|---|
MetadataDefinitionQuery | q | Query for filtering and populating |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<MetadataDefinition> |
IsInUse(Int32)
Check if a metadata definition is in use
Declaration
bool IsInUse(int metadataDefinitionId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | metadataDefinitionId |
Returns
Type | Description |
---|---|
System.Boolean |
Save(MetadataDefinition)
Create or update a metadata definition
Declaration
int Save(MetadataDefinition metadataDefinition)
Parameters
Type | Name | Description |
---|---|---|
MetadataDefinition | metadataDefinition |
Returns
Type | Description |
---|---|
System.Int32 | The id of metadata definition |