Setup ef core tools and sqlite database with some entities

This commit is contained in:
2019-04-20 00:39:07 +00:00
parent 4e5142d5ec
commit 0f9a598fae
17 changed files with 424 additions and 9 deletions

View File

@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BrightGlimmer.Data.Domain
{
public class Course
{
public Guid Id { get; set; }
public string Name { get; set; }
public string Description { get; set; }
public string Code { get; set; }
}
}

View File

@@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BrightGlimmer.Data.Domain
{
public class Phone
{
public Guid Id { get; set; }
public PhoneType Type { get; set; }
public int AreaCode { get; set; }
public int Number { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BrightGlimmer.Data.Domain
{
public enum PhoneType
{
HOMEPHONE, CELLPHONE, WORKPHONE
}
}

View File

@@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace BrightGlimmer.Data.Domain
{
public class Student
{
public Guid Id { get; set; }
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; }
}
}