C# Class DataAccess.SearchVideoAccess

ファイルを表示 Open project: mysteryx93/NaturalGroundingPlayer Class Usage Examples

Public Methods

Method Description
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

Method Details

ApplySearchFilters() public static method

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.
return IQueryable

GetAllFileNames() public static method

public static GetAllFileNames ( ) : List
return List

GetCategoryArtists() public static method

Returns the list of artists that have more than one song.
public static GetCategoryArtists ( SearchSettings settings ) : List
settings SearchSettings
return List

GetCategoryCategories() public static method

Returns the list of categories.
public static GetCategoryCategories ( SearchSettings settings ) : List
settings SearchSettings
return List

GetCategoryElements() public static method

Returns the list of elements.
public static GetCategoryElements ( SearchSettings settings ) : List
settings SearchSettings
return List

GetCustomRatingCategories() public static method

public static GetCustomRatingCategories ( ) : List
return List

GetFilterClause() public static method

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.
return bool>>.Expression

GetList() public static method

public static GetList ( SearchSettings settings ) : List
settings SearchSettings
return List

GetVideo() public static method

public static GetVideo ( System.Guid videoId ) : DataAccess.VideoListItem
videoId System.Guid
return DataAccess.VideoListItem

QueryVideoListItem() public static method

public static QueryVideoListItem ( IQueryable query, SearchSettings settings ) : IQueryable
query IQueryable
settings SearchSettings
return IQueryable