Class Resource
This class represents the EntityModel interface to the AdResources database table.
Inheritance
Inherited Members
Namespace: Cmc.Nexus.Models.Common
Assembly: Cmc.Nexus.Models.dll
Syntax
public class Resource
Constructors
Resource()
Declaration
public Resource()
Properties
CampusGroup
Declaration
public virtual CampusGroup CampusGroup { get; set; }
Property Value
| Type | Description |
|---|---|
| CampusGroup |
CampusGroupId
Gets or sets the CampusGroupId associated with this Resource.
Declaration
public int CampusGroupId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The CampusGroupId. |
Code
Gets or sets the Code associated with this Resource.
Declaration
public string Code { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The Code. |
Courses
Declaration
public virtual ICollection<CourseResource> Courses { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<CourseResource> |
CreatedDateTime
Gets or sets the CreatedDateTime associated with this Resource.
Declaration
public DateTime CreatedDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The CreatedDateTime. |
Id
Gets or sets the Id associated with this Resource.
Declaration
public int Id { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The Id. |
IsActive
Gets or sets the IsActive associated with this Resource.
Declaration
public bool IsActive { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The IsActive. |
LastModifiedDateTime
Gets or sets the LastModifiedDateTime associated with this Resource.
Declaration
public DateTime LastModifiedDateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| System.DateTime | The LastModifiedDateTime. |
LastModifiedUserId
Gets or sets the LastModifiedUserId associated with this Resource.
Declaration
public int LastModifiedUserId { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The LastModifiedUserId. |
Name
Gets or sets the Name associated with this Resource.
Declaration
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The Name. |
Rooms
Declaration
public virtual ICollection<RoomResource> Rooms { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.ICollection<RoomResource> |
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 relationships 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 |