MemberQuery Class

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

Defines a query used to find members.

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

Constructors

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

Properties

Admin Gets or sets a value indicating whether the search should return members that are admins; true returns only admins, false returns only entities that are not admins and null ignores the IsAdmin property. Default is null.
External Gets or sets a value indicating whether to find external members or not, null returns all members.
Pending Gets or sets a value indicating whether the search should return pending members; true returns only pending members, false returns only entities that is not pending and null ignores the IsPending property. Default is false.
Suspended Gets or sets a value indicating whether to find suspended members or not, null returns all members.

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.