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.

37 lines
1.0 KiB

using Infrastructure.Domain;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace Application.Domain.Entities
{
[Display(Name = "产品")]
public class Product : BaseEntity
{
[Display(Name = "产品名称")]
public string Name { get; set; }
[Display(Name = "产品型号")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Number { get; set; }
[Display(Name = "图标")]
public string Image { get; set; }
[Display(Name = "路径")]
public string Path { get; set; }
[Display(Name = "ApiJson")]
public string ApiJson { get; set; }
[Display(Name = "序号")]
public int DisplayOrder { get; set; }
[Display(Name = "产品分类")]
public Guid CategoryId { get; set; }
public Category Category { get; set; }
public List<Device> Devices { get; set; } = new List<Device>();
public List<Api> Apis { get; set; } = new List<Api>();
}
}