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(); } } }