WIP setting up new data project structure and event handlers
This commit is contained in:
7
BrightGlimmer.Domain/BrightGlimmer.Domain.csproj
Normal file
7
BrightGlimmer.Domain/BrightGlimmer.Domain.csproj
Normal file
@@ -0,0 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
13
BrightGlimmer.Domain/Course.cs
Normal file
13
BrightGlimmer.Domain/Course.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
{
|
||||
public class Course : Entity
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Code { get; set; }
|
||||
}
|
||||
}
|
||||
11
BrightGlimmer.Domain/Entity.cs
Normal file
11
BrightGlimmer.Domain/Entity.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
{
|
||||
public class Entity
|
||||
{
|
||||
public Guid Id { get; set; }
|
||||
}
|
||||
}
|
||||
13
BrightGlimmer.Domain/Phone.cs
Normal file
13
BrightGlimmer.Domain/Phone.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
{
|
||||
public class Phone : Entity
|
||||
{
|
||||
public PhoneType Type { get; set; }
|
||||
public int AreaCode { get; set; }
|
||||
public int Number { get; set; }
|
||||
}
|
||||
}
|
||||
11
BrightGlimmer.Domain/PhoneType.cs
Normal file
11
BrightGlimmer.Domain/PhoneType.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
{
|
||||
public enum PhoneType
|
||||
{
|
||||
HOMEPHONE, CELLPHONE, WORKPHONE
|
||||
}
|
||||
}
|
||||
15
BrightGlimmer.Domain/Student.cs
Normal file
15
BrightGlimmer.Domain/Student.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace BrightGlimmer.Domain
|
||||
{
|
||||
public class Student : Entity
|
||||
{
|
||||
public string FirstName { get; set; }
|
||||
public string MiddleName { get; set; }
|
||||
public string LastName { get; set; }
|
||||
public string Email { get; set; }
|
||||
public List<Phone> Phones { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user