aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio_v2/Tango.DAL/Entities/OrganizationEntity.cs
blob: 5d4a419bacdf0cbf5fbb5380eabb2c7b06fca019 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using MongoDB.Bson.Serialization.Attributes;
using System;
using Tango.DAL.Attributes;
using Tango.DAL.Models;

namespace Tango.DAL.Entities
{
    [Collection("Organizations")]
    public class OrganizationEntity : Entity
    {
        [Unique]
        public string Name { get; set; }
        public ContactModel Contact { get; set; }
        public AddressModel Address { get; set; }

        public OrganizationEntity()
        {
            Contact = new ContactModel();
            Address = new AddressModel();
        }
    }
}