Company.OwnerId set to Guid?

This commit is contained in:
jozsef.b@aycode.com 2024-05-28 19:07:58 +02:00
parent d82f6b9dc3
commit f68a9d1551
2 changed files with 5 additions and 3 deletions

View File

@ -17,9 +17,10 @@ namespace AyCode.Entities.ServiceProviders
[Key, DatabaseGenerated(DatabaseGeneratedOption.None)] [Key, DatabaseGenerated(DatabaseGeneratedOption.None)]
public Guid Id { get; set; } public Guid Id { get; set; }
[Required] //[Required]
public Guid OwnerId { get; set; } public Guid? OwnerId { get; set; }
[Required]
public Guid ProfileId { get; set; } public Guid ProfileId { get; set; }
public virtual TProfile Profile { get; set; } public virtual TProfile Profile { get; set; }

View File

@ -5,8 +5,9 @@ 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; }