Compare commits

...

2 Commits

Author SHA1 Message Date
jozsef.b@aycode.com 225c605697 CommissionPercent set to double 2024-05-28 19:18:16 +02:00
jozsef.b@aycode.com f68a9d1551 Company.OwnerId set to Guid? 2024-05-28 19:07:58 +02:00
2 changed files with 10 additions and 8 deletions

View File

@ -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;

View File

@ -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; }