demo20230512/Models/Paramemter/SimaproVersion.cs
2023-05-12 10:20:28 +08:00

32 lines
945 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;
namespace Weee.Models.Paramemter
{
public class SimaproVersion
{
public SimaproVersion()
{
Categories = new HashSet<SimaproParameterCategory>();
CreatedDate = DateTime.UtcNow;
IsActive = false;
IsDeleteable = true;
}
[Key]
public int ID { get; set; }
[Column(TypeName = "DateTime2")]
public DateTime CreatedDate { get; set; }
public bool IsActive { get; set; }
public bool IsDeleteable { get; set; }
public string Version { get; set; }
public string Description { get; set; }
[InverseProperty("SimaproVersion")]
public virtual ICollection<SimaproParameterCategory> Categories { get; set; }
}
}