UserQuery Class

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

Defines a query used to find matching User items.

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

Constructors

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

Properties

Active Gets or sets a value indicating whether the search should return active users; true returns only active users, false returns only users that are away and null ignores the Active property. Default is null.
BuiltIn Gets or sets a value indicating whether the result should return built-in users. Default is false.
External Gets or sets a value indicating whether to find external users or not, null returns all users.
Suspended Gets or sets a value indicating whether to find suspended users or not, null returns all users.

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.