using System.ComponentModel.DataAnnotations.Schema; namespace TIAM.Entities.Drivers; //[Table(nameof(UserProductToCar))] //[Owned] public class UserProductToCar //: IEntityGuid//, ITimeStampInfo, ITimeStampDisableAutoSet { /// /// Primary key [Guid Id] /// public Guid UserProductCarId { get; set; } [NotMapped] //public Guid UserProductMappingId { get; set; } public Car Car { get; set; } public DateTime Created { get; set; } = DateTime.UtcNow; public DateTime Modified { get; set; } = DateTime.UtcNow; public UserProductToCar() { } public UserProductToCar(Car car) : this(Guid.NewGuid(), car) { } public UserProductToCar(Guid userProductCarId, Car car) { UserProductCarId = userProductCarId; Car = car; } }