Table of Contents

Class RelatedEntityModel<RelationType, RelatedEntityType>

Namespace
Innova.Data.Entity.Relations
Assembly
Innova.Data.dll

Represents a model for a related entity.

[DataContract]
public class RelatedEntityModel<RelationType, RelatedEntityType> : INotifyPropertyChanged where RelationType : class, IEntityWithKey<RelationType> where RelatedEntityType : class, IEntityWithKey<RelationType>

Type Parameters

RelationType

The type of the relation.

RelatedEntityType

The type of the related entity.

Inheritance
RelatedEntityModel<RelationType, RelatedEntityType>
Implements

Constructors

RelatedEntityModel()

Initializes a new instance of the RelatedEntityModel<RelationType, RelatedEntityType> class.

RelatedEntityModel(RelationType, RelatedEntityType)

Initializes a new instance of the RelatedEntityModel<RelationType, RelatedEntityType> class with the specified relation and related entity.

Fields

ToStringDelegate

Gets or sets the delegate used to convert the related entity model to a string representation.

Properties

RelatedEntity

Gets or sets the related entity.

Relation

Gets or sets the relation.

Methods

ToString()

Returns a string representation of the related entity model.

Events

PropertyChanged

Occurs when a property value changes.