C# Класс DataAccess.SearchVideoAccess

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
ApplySearchFilters ( IQueryable Query, SearchSettings settings, Entities context ) : IQueryable

Applies all search filters to the video selection query.

GetAllFileNames ( ) : List
GetCategoryArtists ( SearchSettings settings ) : List

Returns the list of artists that have more than one song.

GetCategoryCategories ( SearchSettings settings ) : List

Returns the list of categories.

GetCategoryElements ( SearchSettings settings ) : List

Returns the list of elements.

GetCustomRatingCategories ( ) : List
GetFilterClause ( IQueryable Query, SearchRatingSetting item, double ratingRatio, Entities context ) : bool>>.Expression

Returns the Where clause for specified rating filter.

GetList ( SearchSettings settings ) : List
GetVideo ( System.Guid videoId ) : DataAccess.VideoListItem
QueryVideoListItem ( IQueryable query, SearchSettings settings ) : IQueryable

Описание методов

ApplySearchFilters() публичный статический Метод

Applies all search filters to the video selection query.
public static ApplySearchFilters ( IQueryable Query, SearchSettings settings, Entities context ) : IQueryable
Query IQueryable The video selection query.
settings SearchSettings The settings to apply to the query.
context Entities The data context to the database.
Результат IQueryable

GetAllFileNames() публичный статический Метод

public static GetAllFileNames ( ) : List
Результат List

GetCategoryArtists() публичный статический Метод

Returns the list of artists that have more than one song.
public static GetCategoryArtists ( SearchSettings settings ) : List
settings SearchSettings
Результат List

GetCategoryCategories() публичный статический Метод

Returns the list of categories.
public static GetCategoryCategories ( SearchSettings settings ) : List
settings SearchSettings
Результат List

GetCategoryElements() публичный статический Метод

Returns the list of elements.
public static GetCategoryElements ( SearchSettings settings ) : List
settings SearchSettings
Результат List

GetCustomRatingCategories() публичный статический Метод

public static GetCustomRatingCategories ( ) : List
Результат List

GetFilterClause() публичный статический Метод

Returns the Where clause for specified rating filter.
public static GetFilterClause ( IQueryable Query, SearchRatingSetting item, double ratingRatio, Entities context ) : bool>>.Expression
Query IQueryable The video selection query to filter.
item SearchRatingSetting The rating filter to apply.
ratingRatio double The rating ratio.
context Entities The data context to the database.
Результат bool>>.Expression

GetList() публичный статический Метод

public static GetList ( SearchSettings settings ) : List
settings SearchSettings
Результат List

GetVideo() публичный статический Метод

public static GetVideo ( System.Guid videoId ) : DataAccess.VideoListItem
videoId System.Guid
Результат DataAccess.VideoListItem

QueryVideoListItem() публичный статический Метод

public static QueryVideoListItem ( IQueryable query, SearchSettings settings ) : IQueryable
query IQueryable
settings SearchSettings
Результат IQueryable