Added mongo db repository

This commit is contained in:
2019-04-22 17:57:23 +00:00
parent 0f9a598fae
commit 83385a66c7
7 changed files with 74 additions and 8 deletions

View File

@@ -1,4 +1,5 @@
using System;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
@@ -6,11 +7,17 @@ namespace BrightGlimmer.Data.Domain
{
public class Student
{
[BsonElement("Id")]
public Guid Id { get; set; }
[BsonElement("FirstName")]
public string FirstName { get; set; }
[BsonElement("MiddleName")]
public string MiddleName { get; set; }
[BsonElement("LastName")]
public string LastName { get; set; }
[BsonElement("Email")]
public string Email { get; set; }
[BsonElement("Phones")]
public List<Phone> Phones { get; set; }
}
}