EntityQuery Class

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

Defines a query used to find entities.

public class EntityQuery : Query, ICloneable
Inheritance:
System.Object → QueryOptionsQuery → Weavy.Core.Models.Query{Weavy.Core.Models.Entity} → EntityQuery

Constructors

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

Properties

FollowedById Gets or sets the id of a User. Used to find entities followed by a specific User, null to ignore the FollowedBy property. Default is null.
LikedById Gets or sets the id of a User. Used to find entities liked by a specific User, null to ignore the LikedBy property. Default is null.
StarredById Gets or sets the id of a User. Used to find entities starred by a specific User, null to ignore the StarredBy property. Default is null.

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, Nullable, 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.