Added constructors to the entities
This commit is contained in:
@@ -8,8 +8,17 @@ namespace BrightGlimmer.Domain
|
||||
[Table("Phones")]
|
||||
public class Phone : Entity
|
||||
{
|
||||
public PhoneType Type { get; set; }
|
||||
public int AreaCode { get; set; }
|
||||
public int Number { get; set; }
|
||||
public PhoneType Type { get; private set; }
|
||||
public int AreaCode { get; private set; }
|
||||
public int Number { get; private set; }
|
||||
|
||||
private Phone() { }
|
||||
|
||||
public Phone(PhoneType type, int areaCode, int number)
|
||||
{
|
||||
Type = type;
|
||||
AreaCode = areaCode;
|
||||
Number = number;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user