Class DbVaultMetadataDefinition
This entity class represents a metadata definition that is connected to a certain vault. When a metadata definition is connected to a vault extra information is included in properties IsAltText and IsTitle.
Inheritance
Inherited Members
Namespace: ImageVault.Core.Common.DbEntities
Assembly: ImageVault.Core.dll
Syntax
public class DbVaultMetadataDefinition
Constructors
DbVaultMetadataDefinition()
Initializes a new instance of the DbVaultMetadataDefinition class.
Declaration
public DbVaultMetadataDefinition()
DbVaultMetadataDefinition(VaultMetadataDefinition)
Initializes a new instance of the DbVaultMetadataDefinition class.
Declaration
public DbVaultMetadataDefinition(VaultMetadataDefinition vaultMetadataDefinition)
Parameters
Type | Name | Description |
---|---|---|
VaultMetadataDefinition | vaultMetadataDefinition |
DbVaultMetadataDefinition(DbMetadataDefinition)
Initializes a new instance of the DbVaultMetadataDefinition class.
Declaration
public DbVaultMetadataDefinition(DbMetadataDefinition metadataDefinition)
Parameters
Type | Name | Description |
---|---|---|
DbMetadataDefinition | metadataDefinition |
Properties
IsAltText
Whether the value of the metadata should be used as alt text when inserted on an html page.
Declaration
public bool IsAltText { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMandatory
Whether the value of the metadata is mandatory.
Declaration
public bool IsMandatory { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsTitle
Whether the value of the metadata should be used as title when inserted on an html page.
Declaration
public bool IsTitle { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MetadataDefinition
Get/Sets the DbMetadataDefinition of the DbVaultMetadataDefinition
Declaration
public DbMetadataDefinition MetadataDefinition { get; set; }
Property Value
Type | Description |
---|---|
DbMetadataDefinition |
MetadataDefinitionId
Get/Sets the MetadataDefinitionId of the DbVaultMetadataDefinition
Declaration
public int MetadataDefinitionId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
VaultId
Which vault the definition is connected to
Declaration
public int VaultId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
ToVaultMetadataDefnintion()
Declaration
public VaultMetadataDefinition ToVaultMetadataDefnintion()
Returns
Type | Description |
---|---|
VaultMetadataDefinition |