LoadInfo.cs
887 字节
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;
namespace DeviceLib.Model.AGV
{
[Table("tbl_loadinfos")]
public class LoadInfo
{
[Key]
public int id { get; set; }
public string shelf_id { get; set; } = "";
/// <summary>
/// 3是空,4是满
/// </summary>
public ShelfType shelf_type { get; set; }
public int robot_id { get; set; }
/// <summary>
/// 所在位置,1是左侧,2是右侧
/// </summary>
public int pos { get; set; }
public override string ToString()
{
return $"shelf_id={shelf_id},shelf_type={shelf_type}【{shelf_type.ToString()}】,pos={pos}";
}
}
}