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.
54 lines
1.3 KiB
54 lines
1.3 KiB
using Shentun.Pacs.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Volo.Abp.Domain.Entities;
|
|
|
|
namespace Shentun.Pacs.Models
|
|
{
|
|
/// <summary>
|
|
/// 房间对应的项目
|
|
/// </summary>
|
|
[Table("room_detail")]
|
|
public class RoomDetail : Entity, IHasConcurrencyStamp
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// 组合项目ID
|
|
/// </summary>
|
|
[Key]
|
|
[Column("asbitem_id")]
|
|
public Guid AsbitemId { get; set; }
|
|
/// <summary>
|
|
/// 房间ID
|
|
/// </summary>
|
|
[Key]
|
|
[Column("room_id")]
|
|
public Guid RoomId { get; set; }
|
|
|
|
[Column("concurrency_stamp")]
|
|
public string ConcurrencyStamp { get; set; }
|
|
|
|
|
|
|
|
[ForeignKey(nameof(AsbitemId))]
|
|
[InverseProperty("RoomDetails")]
|
|
public virtual Asbitem Asbitem { get; set; } = null!;
|
|
|
|
|
|
[ForeignKey(nameof(RoomId))]
|
|
[InverseProperty("RoomDetails")]
|
|
public virtual Room Room { get; set; } = null!;
|
|
|
|
public override object[] GetKeys()
|
|
{
|
|
return new object[] { AsbitemId, RoomId };
|
|
}
|
|
}
|
|
}
|