Click or drag to resize

RelationOneToManyFrom, To Class

Use for one to many (and many to one) relations.
Inheritance Hierarchy
SystemObject
  VelocityDbOptimizedPersistable
    VelocityDb.TypeInfoRelation
      VelocityDb.TypeInfoRelationOneToManyFrom, To

Namespace:  VelocityDb.TypeInfo
Assembly:  VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax
[SerializableAttribute]
public class RelationOneToMany<From, To> : Relation
where From : IOptimizedPersistable
where To : IOptimizedPersistable

Type Parameters

From
Type of From object
To
Type of To object

The RelationOneToManyFrom, To type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyFromFieldName
Name of field referencing this object from From object
Public propertyRelatedFrom
Gets or sets the From object
Public propertyRelatedTo
Returns the To objects
Top
Methods
  NameDescription
Public methodAddRelationTo
Adds a new relations to a To object. Added to "many" collection.
Public methodRemoveRelationTo
Removes relation to a To object. Removed from "many" collection.
Public methodUnpersist
Removes an object from the persistent store and makes the object a transient object. It does not automatically make referenced objects unpersisted. Best way to do so is to override this virtual function in your own classes.
(Overrides OptimizedPersistableUnpersist(SessionBase).)
Top
Extension Methods
  NameDescription
Public Extension MethodToStringDetails(SessionBase, Boolean)Overloaded.
Object details as a string
(Defined by Utilities.)
Public Extension MethodToStringDetails(Schema, TypeVersion, Boolean)Overloaded.
Currently only used by Database Manager
(Defined by Utilities.)
Top
See Also