Added mongo db repository

This commit is contained in:
Giovani
2019-04-22 17:57:23 +00:00
parent 382beefdc3
commit 4e4fa572b7
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,9 +7,13 @@ namespace BrightGlimmer.Data.Domain
{
public class Phone
{
[BsonElement("Id")]
public Guid Id { get; set; }
[BsonElement("Type")]
public PhoneType Type { get; set; }
[BsonElement("AreaCode")]
public int AreaCode { get; set; }
[BsonElement("Number")]
public int Number { get; set; }
}
}