30 lines
927 B
C#
30 lines
927 B
C#
using SmallSoftwareContracts.Enums;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SmallSoftwareDatabase.Models;
|
|
|
|
internal class Software
|
|
{
|
|
public required string Id { get; set; }
|
|
public required string SoftwareName { get; set; }
|
|
public SoftwareType SoftwareType { get; set; }
|
|
public required string ManufacturerId { get; set; }
|
|
public double Price { get; set; }
|
|
public bool IsDeleted { get; set; }
|
|
public string? PrevSoftwareName { get; set; }
|
|
public string? PrevPrevSoftwareName { get; set; }
|
|
public Manufacturer? Manufacturer { get; set; }
|
|
|
|
[ForeignKey("SoftwareId")]
|
|
public List<SoftwareHistory>? SoftwareHistories { get; set; }
|
|
|
|
[ForeignKey("SoftwareId")]
|
|
public List<InstallationRequest>? InstallationRequests { get; set; }
|
|
|
|
}
|