Class EntityAttributeTypeSpecifier
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
membershipPredicateFunc<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
specifiersIEnumerable<IEntityAttributeValueTypeSpecifier>
Returns
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
entityIdentifierIEntityIdentifierattributeIAttribute
Returns
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
entityIdentifierIEntityIdentifierattributeIAttribute<V>valueV
Returns
Type Parameters
V
Exceptions
- AttributeTypeMismatchException
The specifier admits values of another type for the attribute.