Added constructors to the entities
This commit is contained in:
@@ -8,8 +8,17 @@ namespace BrightGlimmer.Domain
|
||||
[Table("Courses")]
|
||||
public class Course : Entity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Code { get; set; }
|
||||
public string Name { get; private set; }
|
||||
public string Description { get; private set; }
|
||||
public string Code { get; private set; }
|
||||
|
||||
private Course() { }
|
||||
|
||||
public Course(string name, string description, string code)
|
||||
{
|
||||
Name = name;
|
||||
Description = description;
|
||||
Code = code;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user