SpaceQuery Class

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

Defines a query used to find matching Space items.

public class SpaceQuery : Query<Space>, ICloneable
Inheritance:
System.Object → QueryOptionsQuery → Weavy.Core.Models.Query{Weavy.Core.Models.Space} → SpaceQuery

Constructors

SpaceQuery() Initializes a new instance of the SpaceQuery class.
SpaceQuery(Query) Initializes a new instance of the SpaceQuery class with the specified Query.
SpaceQuery(QueryOptions) Initializes a new instance of the SpaceQuery class with the specified QueryOptions.

Properties

Archived Gets or sets a value indicating whether to return archived spaces or not.
BuiltIn Gets or sets a value indicating whether the result should return built-in spaces. Default is false.
Member Gets or sets a value indicating whether the find spaces where the current user is member. Specifying true finds only spaces where the current user is member and false finds only spaces where the current user is not member. Default is null which finds all spaces regardless of membership status.
MemberId Gets or sets a user id. Can be used to find spaces where a user is member.
Privacy Gets or sets the privacy level to search for. Default value is null which finds all spaces regardless of their privacy setting.

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.