Class ListConverters
Summary description for DbVaultExtensions.
Inheritance
System.Object
ListConverters
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ImageVault.Core.Common.DbEntities
Assembly: ImageVault.Core.dll
Syntax
public static class ListConverters
Methods
ToCategoryList(IList<DbCategory>, Int32[])
Converts a list of DbCategory to a list of Category
Declaration
public static List<Category> ToCategoryList(this IList<DbCategory> list, int[] parentId = null)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbCategory> | list | |
System.Int32[] | parentId |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Category> |
ToLanguageList(IList<DbLanguage>)
Converts a list of DbLanguage to a list of Language
Declaration
public static List<Language> ToLanguageList(this IList<DbLanguage> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbLanguage> | list |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Language> |
ToMediaItemList(IEnumerable<DbMediaItem>)
Converts a list of DbMediaItem to a list of MediaItem
Declaration
public static List<MediaItem> ToMediaItemList(this IEnumerable<DbMediaItem> enu)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<DbMediaItem> | enu |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<MediaItem> |
ToMetadataDefinitionList(IList<DbMetadataDefinition>)
Converts a list of DbMetadataDefinition to a list of MetadataDefinition
Declaration
public static List<MetadataDefinition> ToMetadataDefinitionList(this IList<DbMetadataDefinition> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbMetadataDefinition> | list |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<MetadataDefinition> |
ToVaultList(IList<DbVault>)
Converts a list of DbVault to a list of Vault
Declaration
public static List<Vault> ToVaultList(this IList<DbVault> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbVault> | list |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<Vault> |
ToVaultList(IList<DbVaultAccess>)
Converts a list of DbVaultAccess to a list of VaultAccess
Declaration
public static List<VaultAccess> ToVaultList(this IList<DbVaultAccess> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IList<DbVaultAccess> | list |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<VaultAccess> |