Workshop.cs 760 字节
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace DeviceLib.Model.AGV
{
    [Table("tbl_workshops")]
    public class Workshop
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Key]
        public int id { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string name { get; set; }
        /// <summary>
        /// 楼层
        /// </summary>
        public int floor { get; set; }
        public string description { get; set; }
        public override string ToString()
        {
            return description == null ? "" : description;
        }
    }
}