You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
using System;using System.Collections.Generic;using System.ComponentModel.DataAnnotations;using System.ComponentModel.DataAnnotations.Schema;using Microsoft.EntityFrameworkCore;using Volo.Abp.Domain.Entities;using Volo.Abp.Domain.Entities.Auditing;
namespace Shentun.Peis.Models{ /// <summary>
/// 标本容器设置
/// </summary>
[Table("sample_container")] [Index(nameof(DisplayName), Name = "ix_sample_container", IsUnique = true)] public class SampleContainer : AuditedEntity<Guid>, IDisplayName, IDisplayOrder, IHasConcurrencyStamp { public SampleContainer() { // LisRequests = new HashSet<LisRequest>();
SampleGroups = new HashSet<SampleGroup>(); }
[Column("display_name")] [StringLength(20)] public string DisplayName { get; set; } = null!; /// <summary>
/// 颜色名
/// </summary>
[Column("container_color_name")] [StringLength(20)] public string ContainerColorName { get; set; } = null!; /// <summary>
/// 颜色
/// </summary>
[Column("container_color")] public int ContainerColor { get; set; } [Column("simple_code")] [StringLength(20)] public string SimpleCode { get; set; } = null!; [Column("display_order")] public int DisplayOrder { get; set; }
/// <summary>
/// 备注
/// </summary>
[Column("container_remark")] [StringLength(500)] public string? ContainerRemark { get; set; }
[Column("concurrency_stamp")] public string ConcurrencyStamp { get; set; }
//[Column("last_modifier_id")]
//public Guid LastModifierId { get; set; }
//[Column("last_modification_time", TypeName = "timestamp without time zone")]
//public DateTime LastModificationTime { get; set; }
//[Column("creator_id")]
//public Guid CreatorId { get; set; }
//[Column("creation_time", TypeName = "timestamp without time zone")]
//public DateTime CreationTime { get; set; }
//[Column("concurrency_stamp")]
//[StringLength(40)]
//public string ConcurrencyStamp { get; set; } = null!;
[InverseProperty(nameof(LisRequest.SampleContainer))] public virtual ICollection<LisRequest> LisRequests { get; set; } [InverseProperty(nameof(SampleGroup.SampleContainer))] public virtual ICollection<SampleGroup> SampleGroups { get; set; }
//public override object[] GetKeys()
//{
// return new object[] { SampleContainerId };
//}
}}
|