Interface IMetadataDefinitionService
Summary description for IMetadataDefinitionService.
Namespace: ImageVault.Core.Common.Services
Assembly: ImageVault.Core.dll
Syntax
public interface IMetadataDefinitionService
Methods
EnsureMetadataDefinition(String, MetadataDefinitionTypes, MetadataTypes)
Ensures that the supplied metadata definition exists
Declaration
DbMetadataDefinition EnsureMetadataDefinition(string name, MetadataDefinitionTypes definitionType, MetadataTypes type)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Name of the definition |
MetadataDefinitionTypes | definitionType | Definition type |
MetadataTypes | type | data type to use if definition needs to be created |
Returns
Type | Description |
---|---|
DbMetadataDefinition |
FindDbMetadataDefinitions(Nullable<MetadataDefinitionTypes>, String)
Gets an existing MetadataDefinition based on the supplied search parameters
Declaration
List<DbMetadataDefinition> FindDbMetadataDefinitions(MetadataDefinitionTypes? metadataDefinitionType, string name)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<MetadataDefinitionTypes> | metadataDefinitionType | The MetadataDefinitionTypes of the definition |
System.String | name | The name of the definition |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<DbMetadataDefinition> | The found System.Collections.Generic.IList<T> or null if no matching definition is defined in the system |