Compare commits
2 Commits
d82f6b9dc3
...
225c605697
| Author | SHA1 | Date |
|---|---|---|
|
|
225c605697 | |
|
|
f68a9d1551 |
|
|
@ -17,16 +17,17 @@ namespace AyCode.Entities.ServiceProviders
|
|||
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[Required]
|
||||
public Guid OwnerId { get; set; }
|
||||
//[Required]
|
||||
public Guid? OwnerId { get; set; }
|
||||
|
||||
[Required]
|
||||
public Guid ProfileId { get; set; }
|
||||
public virtual TProfile Profile { get; set; }
|
||||
|
||||
[Required]
|
||||
public string Name { get; set; }
|
||||
|
||||
public double? CommissionPercent { get; set; }
|
||||
public double CommissionPercent { get; set; }
|
||||
|
||||
[Required]
|
||||
public Guid AffiliateId { get; set; }
|
||||
|
|
@ -43,15 +44,15 @@ namespace AyCode.Entities.ServiceProviders
|
|||
{
|
||||
}
|
||||
|
||||
protected AcCompany(string name, Guid ownerId) : this(Guid.NewGuid(), name, ownerId)
|
||||
protected AcCompany(string name, Guid? ownerId) : this(Guid.NewGuid(), name, ownerId)
|
||||
{
|
||||
}
|
||||
|
||||
protected AcCompany(Guid id, string name, Guid ownerId) : this(id, name, ownerId, Guid.NewGuid())
|
||||
protected AcCompany(Guid id, string name, Guid? ownerId) : this(id, name, ownerId, Guid.NewGuid())
|
||||
{
|
||||
}
|
||||
|
||||
protected AcCompany(Guid id, string name, Guid ownerId, Guid affiliateId, double? commissionPercent = null) : this()
|
||||
protected AcCompany(Guid id, string name, Guid? ownerId, Guid affiliateId, double commissionPercent = 0) : this()
|
||||
{
|
||||
Id = id;
|
||||
Name = name;
|
||||
|
|
|
|||
|
|
@ -5,11 +5,12 @@ using AyCode.Interfaces.TimeStampInfo;
|
|||
|
||||
namespace AyCode.Interfaces.ServiceProviders;
|
||||
|
||||
public interface IAcCompanyBase : IEntityGuid, IAcProfileForeignKey, ITimeStampInfo, IOwnerId
|
||||
public interface IAcCompanyBase : IEntityGuid, IAcProfileForeignKey, ITimeStampInfo//, IOwnerId
|
||||
{
|
||||
Guid? OwnerId { get; set; }
|
||||
string Name { get; set; }
|
||||
|
||||
double? CommissionPercent { get; set; }
|
||||
double CommissionPercent { get; set; }
|
||||
|
||||
Guid AffiliateId { get; set; }
|
||||
Guid? ReferralId { get; set; }
|
||||
|
|
|
|||
Loading…
Reference in New Issue