Click or drag to resize

RelatedMapperContext Class

Provides for context information for a mapper relationship. Currently the only relationship built into the platform is that between a mapper and its parent. An example of such a relationship is a mapper in the bottom pane of a subform template with its ParentContext being that of the mapper in the top pane.
Inheritance Hierarchy
SystemObject
  NetQuarry.DataRelatedMapperContext

Namespace:  NetQuarry.Data
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public class RelatedMapperContext

The RelatedMapperContext type exposes the following members.

Constructors
  NameDescription
Public methodRelatedMapperContext(IAppContext)
Default constructor that tries to determine and use the current parent mapper from the QueryString.
Public methodRelatedMapperContext(IMapper)
Create the context using an existing mapper. The mapper will NOT be closed. It is the responsibility of the caller to close the mapper.
Public methodRelatedMapperContext(IAppContext, String, String)
Fully-qualified constructor.
Top
Properties
  NameDescription
Public propertyKey
The key of the related mapper.
Public propertyRowKey
The RowKey of the related mapper.
Top
Methods
  NameDescription
Public methodClose
Close out this item releasing resources, if any.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetParent
Gets the current parent mapper instance, if any. If the current related mapper is know it is returned, else an attempt is made to instantiate one and filter it for the current item.
Public methodGetParent(String)
Gets the parent mapper instance, if any, using the specified mapper definition. If the current related mapper is know it is returned, else an attempt is made to instantiate one and filter it for the current item.
Public methodGetParent(String, String)
Gets the parent mapper instance, if any, using the specified mapper definition and filtered on the specified RowKey. If the current related mapper is know it is returned, else an attempt is made to instantiate one and filter it for the current item.
Public methodGetParent(String, String, Flavors)
Gets the parent mapper instance, if any, using the specified mapper definition and filtered on the specified RowKey. If the current related mapper is know it is returned, else an attempt is made to instantiate one and filter it for the current item.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetDefaultParent
Set the default parent Key and RowKey, but only if null.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodEqualValue
Determines if the object value is equal to another object. If the two objects are null, then this returns true. There is special handling for guid comparisons (since a guid could be a string formatted in up to 3 different ways). If the special guid handling is not performed, then the object.Equals method is used.
(Defined by EAPUtil.)
Top
See Also