Class TermRelationship
This class represents the EntityModel interface to the AdTermRelationship database table.
Inheritance
System.Object
TermRelationship
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Cmc.Nexus.Models.Academics
Assembly: Cmc.Nexus.Models.dll
Syntax
public class TermRelationship
Constructors
TermRelationship()
Declaration
public TermRelationship()
Properties
ChildTerm
Declaration
public virtual Term ChildTerm { get; set; }
Property Value
Type | Description |
---|---|
Term |
ChildTermId
Gets or sets the ChildTermId associated with this TermRelationship.
Declaration
public int ChildTermId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The ChildTermId. |
Id
Gets or sets the Id associated with this TermRelationship.
Declaration
public int Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The Id. |
ParentTerm
Declaration
public virtual Term ParentTerm { get; set; }
Property Value
Type | Description |
---|---|
Term |
ParentTermId
Gets or sets the ParentTermId associated with this TermRelationship.
Declaration
public int ParentTermId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The ParentTermId. |
Methods
GeneratedInitializer()
This is the auto-generated initializer that knows how to deal with any relationship initialization for auto-generated relationships.
Declaration
public void GeneratedInitializer()
SetupFluentMappings(DbModelBuilder)
Any type of relationship that can't be inferred from the entity annotations must be done by hand using the Fluent api. Handle those relationships here.
Declaration
public static void SetupFluentMappings(DbModelBuilder modelBuilder)
Parameters
Type | Name | Description |
---|---|---|
System.Data.Entity.DbModelBuilder | modelBuilder | The DbModelBuilder that has all of the model entities. |