IIdMemberReference

Namespace: ASPSecurityKit.Authorization
Assembly: ASPSecurityKit.dll

Summary

Interface to represent an entityId member model.

Remarks

Note to implementers: you should override GetHashCode, Equals methods to aid in determining and removing duplicate entityIds. You can simply derive from IdMemberReference<TIdReference> which already overrides these methods properly.

Properties

MemberName

Summary

Gets or sets the member name.

ParentName

Summary

Gets the name of the parent container object for this member. If provided, can be used for prefixing member name that has only ‘Id’ to locate the right related references provider.

Value

The name of the parent container object for this member.

AllNames

Summary

Gets all the names that this member can be referred by. It’ll be used to locate a related references loader (GetReferences). Usually it should return at least MemberName and combined ParentName with MemberName (if ParentName is non-empty).

Value

All the names that this member can be referred by.

Value

Summary

Gets or sets the member value.

ValueString

Summary

Gets the string representation of the member value.

References

Summary

Gets the references related to the entityId represented by this instance. It may include this instance entityId value as well. Serves the purpose of authorizing this entityId for the current operation.

Methods

AddReferences(idReferences)

Summary

Adds new items to the related references collection.

Parameters
Name Type Description
idReferences ASPSecurityKit.Authorization.IIdReference[] The related references to add.