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.
iot/projects/IoT.Shared/Application/Models/EditSceneModel.cs

25 lines
695 B

using Infrastructure.Application;
using System;
using System.ComponentModel.DataAnnotations;
namespace Application.Models
{
[Display(Name = "场景")]
public class EditSceneModel : EditModel
{
[DataType("SelectList")]
[Display(Name = "场景节点")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public Guid? NodeId { get; set; }
[Display(Name = "场景名称")]
[Required(ErrorMessage = nameof(RequiredAttribute))]
public string Name { get; set; }
[Display(Name = "序号")]
public int DisplayOrder { get; set; }
[Display(Name = "禁用")]
public bool Disabled { get; set; }
}
}