Compare commits

..

No commits in common. "225c605697e8e362cd69c564734e4f477df8e29f" and "d82f6b9dc3fe60249cf6320deac18e6065e86d3f" have entirely different histories.

2 changed files with 8 additions and 10 deletions

View File

@ -17,17 +17,16 @@ namespace AyCode.Entities.ServiceProviders
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)] [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public Guid Id { get; set; } public Guid Id { get; set; }
//[Required]
public Guid? OwnerId { get; set; }
[Required] [Required]
public Guid OwnerId { get; set; }
public Guid ProfileId { get; set; } public Guid ProfileId { get; set; }
public virtual TProfile Profile { get; set; } public virtual TProfile Profile { get; set; }
[Required] [Required]
public string Name { get; set; } public string Name { get; set; }
public double CommissionPercent { get; set; } public double? CommissionPercent { get; set; }
[Required] [Required]
public Guid AffiliateId { get; set; } public Guid AffiliateId { get; set; }
@ -44,15 +43,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 = 0) : this() protected AcCompany(Guid id, string name, Guid ownerId, Guid affiliateId, double? commissionPercent = null) : this()
{ {
Id = id; Id = id;
Name = name; Name = name;

View File

@ -5,12 +5,11 @@ using AyCode.Interfaces.TimeStampInfo;
namespace AyCode.Interfaces.ServiceProviders; 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; } string Name { get; set; }
double CommissionPercent { get; set; } double? CommissionPercent { get; set; }
Guid AffiliateId { get; set; } Guid AffiliateId { get; set; }
Guid? ReferralId { get; set; } Guid? ReferralId { get; set; }