28 lines
789 B
C#
28 lines
789 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using AyCode.Entities.ServiceProviders;
|
|
using Mango.Entities.Addresses;
|
|
using Mango.Entities.Profiles;
|
|
using Mango.Entities.Users;
|
|
using Mango.Interfaces.Companies;
|
|
|
|
namespace Mango.Entities.Companies;
|
|
|
|
[Table("ServiceProviders")]
|
|
public class Company : AcCompany<User, UserToCompany, Profile, Address>, ICompany<User, UserToCompany, Profile, Address>, ICompanyBase
|
|
{
|
|
public Company()
|
|
{
|
|
}
|
|
|
|
public Company(string name, Guid ownerId) : this(Guid.NewGuid(), name, ownerId)
|
|
{
|
|
}
|
|
|
|
public Company(Guid id, string name, Guid ownerId) : this(id, name, ownerId, Guid.NewGuid())
|
|
{
|
|
}
|
|
|
|
public Company(Guid id, string name, Guid ownerId, Guid affiliateId) : base(id, name, ownerId, affiliateId)
|
|
{
|
|
}
|
|
} |