Table of Contents

Class EntityAttributeTypeSpecifier

Namespace
Virtufin.Core
Assembly
Virtufin.Core.dll

An IEntityAttributeValueTypeSpecifier over entities and attributes only, for providers that serve several value types: every value of a member entity and attribute is a member.

public class EntityAttributeTypeSpecifier : IEntityAttributeValueTypeSpecifier
Inheritance
EntityAttributeTypeSpecifier
Implements
Inherited Members

Constructors

EntityAttributeTypeSpecifier()

Every entity and attribute is a member.

public EntityAttributeTypeSpecifier()

EntityAttributeTypeSpecifier(Func<IEntityIdentifier, IAttribute, bool>)

Members are the entities and attributes the predicate accepts.

public EntityAttributeTypeSpecifier(Func<IEntityIdentifier, IAttribute, bool> membershipPredicate)

Parameters

membershipPredicate Func<IEntityIdentifier, IAttribute, bool>

Methods

AnyOf(IEnumerable<IEntityAttributeValueTypeSpecifier>)

A member of any of specifiers, asked in order; the sequence is enumerated on every question.

public static IEntityAttributeValueTypeSpecifier AnyOf(IEnumerable<IEntityAttributeValueTypeSpecifier> specifiers)

Parameters

specifiers IEnumerable<IEntityAttributeValueTypeSpecifier>

Returns

IEntityAttributeValueTypeSpecifier

IsTypeMemberForAnyValue(IEntityIdentifier, IAttribute)

Whether the entity and attribute are a member for some value. Attributes are matched by name; the value type is the provider's to check.

public bool IsTypeMemberForAnyValue(IEntityIdentifier entityIdentifier, IAttribute attribute)

Parameters

entityIdentifier IEntityIdentifier
attribute IAttribute

Returns

bool

IsTypeMember<V>(IEntityIdentifier, IAttribute<V>, V)

Whether the triplet is a member.

public bool IsTypeMember<V>(IEntityIdentifier entityIdentifier, IAttribute<V> attribute, V value) where V : struct

Parameters

entityIdentifier IEntityIdentifier
attribute IAttribute<V>
value V

Returns

bool

Type Parameters

V

Exceptions

AttributeTypeMismatchException

The specifier admits values of another type for the attribute.