Show / Hide Table of Contents

Class AddonBag

Represents a container of IAddon objects.

Inheritance
System.Object
AddonBag
DbSession
ModelMember
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevZest.Data.Primitives
Assembly: DevZest.Data.dll
Syntax
public abstract class AddonBag
Remarks

AddonBag is the base class of extensible rich metadata objects, such as Model and Column. IAddon object, on the other hand, is uniquely identified by Key, can be added into this metadata object and later retrieved either by key or by type. For example: DbIndex, which implements IAddon, can be added into Model identified by its Name.

Use extension methods provided in AddonBagExtensions class to manipulate AddonBag object. This is a design decision to separate addon operations into a different namespace.

Constructors

Name Description
AddonBag()

Initializes a new instance of the AddonBag class.

Extension Methods

AddonBagExtensions.GetAddons<T>(AddonBag)
AddonBagExtensions.GetAddon<T>(AddonBag)
AddonBagExtensions.GetAddon(AddonBag, Object)
AddonBagExtensions.Add(AddonBag, IAddon)
AddonBagExtensions.AddOrUpdate(AddonBag, IAddon)
AddonBagExtensions.ContainsAddon(AddonBag, Object)
AddonBagExtensions.RemoveAddon(AddonBag, Object)
  • Improve this Doc
  • View Source
Back to top Copyright © Weifen Luo | DevZest