Class Lesson
This class represents the EntityModel interface to the AdLesson database table.
Inheritance
Inherited Members
Namespace: Cmc.Nexus.Models.Academics
Assembly: Cmc.Nexus.Models.dll
Syntax
public class Lesson
Constructors
Lesson()
Declaration
public Lesson()
Properties
CampusGroup
Declaration
public virtual CampusGroup CampusGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| CampusGroup |
CampusGroupId
Gets or sets the CampusGroupId associated with this Lesson.
Declaration
public int? CampusGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> | The CampusGroupId. |
Code
Gets or sets the Code associated with this Lesson.
Declaration
public string Code { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The Code. |
CreatedByUser
Declaration
public virtual Staff CreatedByUser { get; set; }
Property Value
| Type | Description |
|---|---|
| Staff |
CreatedByUserId
Gets or sets the CreatedByUserId associated with this Lesson.
Declaration
public int CreatedByUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The CreatedByUserId. |
CreatedDateTime
Gets or sets the CreatedDateTime associated with this Lesson.
Declaration
public DateTime CreatedDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The CreatedDateTime. |
Id
Gets or sets the Id associated with this Lesson.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The Id. |
IsActive
Gets or sets the IsActive associated with this Lesson.
Declaration
public bool IsActive { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The IsActive. |
IsRetakeAllowed
Gets or sets the IsRetakeAllowed associated with this Lesson.
Declaration
public bool? IsRetakeAllowed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> | The IsRetakeAllowed. |
LastModifiedDateTime
Gets or sets the LastModifiedDateTime associated with this Lesson.
Declaration
public DateTime LastModifiedDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The LastModifiedDateTime. |
LastModifiedUser
Declaration
public virtual Staff LastModifiedUser { get; set; }
Property Value
| Type | Description |
|---|---|
| Staff |
LastModifiedUserId
Gets or sets the LastModifiedUserId associated with this Lesson.
Declaration
public int LastModifiedUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The LastModifiedUserId. |
LessonSkills
Declaration
public virtual ICollection<LessonSkill> LessonSkills { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<LessonSkill> |
LessonType
Declaration
public virtual LessonType LessonType { get; set; }
Property Value
| Type | Description |
|---|---|
| LessonType |
LessonTypeId
Gets or sets the LessonTypeId associated with this Lesson.
Declaration
public int LessonTypeId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The LessonTypeId. |
MaxRetakeAttempts
Gets or sets the MaxRetakeAttempts associated with this Lesson.
Declaration
public int? MaxRetakeAttempts { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> | The MaxRetakeAttempts. |
Name
Gets or sets the Name associated with this Lesson.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The Name. |
Note
Gets or sets the Note associated with this Lesson.
Declaration
public string Note { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The Note. |
PercentOfFinalGrade
Gets or sets the PercentOfFinalGrade associated with this Lesson.
Declaration
public decimal PercentOfFinalGrade { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Decimal | The PercentOfFinalGrade. |
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. |