ContentSearchResult Class

Namespace:
Weavy.Core.Models
Assembly:
Weavy.Core.dll

Result class returned when searching for content.

public class ContentSearchResult<T> : ContentSearchResult, IList<Content>, ICollection<Content>, IList, ICollection, IReadOnlyList<Content>, IReadOnlyCollection<Content>, IEnumerable<Content>, IEnumerable, IPagedList where T : Content
Inheritance:
System.Object → System.Collections.Generic.List{Weavy.Core.Models.Content} → Weavy.Core.Collections.PagedList{Weavy.Core.Models.Content} → Weavy.Core.Models.SearchResult{Weavy.Core.Models.Content} → ContentSearchResultContentSearchResult
Implements:
IPagedList

Constructors

ContentSearchResult() Initializes an empty ContentResult class.
ContentSearchResult(ContentQuery, IEnumerable, Nullable) Initializes an instance of the ContentResult class with the specified query and result.

Properties

Query Gets the query used in the search.

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.