12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- using System;
- using System.ComponentModel.DataAnnotations;
- using System.ComponentModel.DataAnnotations.Schema;
-
- namespace IMCS.CCS.Entitys
- {
- [Table("ccs_device")]
- public class Device
- {
- [Key]
- [Column("id")]
- [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
- public int Id { get; set; }
-
- [Column("ip")]
- public string Ip { get; set; }
- [Column("port")]
- public string Port { get; set; }
- [Column("user_name")]
- public string UserName { get; set; }
- [Column("password")]
- public string Password { get; set; }
-
- [Column("server_url")]
- public string ServerUrl { get; set; }
-
- [Column("protocol_type")]
- public string ProtocolType { get; set; }
-
- [Column("state")]
- public bool State { get; set; }
- [Column("use_state")]
- public bool UseState { get; set; }
- [Column("description")]
- public string Description { get; set; }
- [Column("disconnect_update_time")]
- public DateTime DisconnectUpdateTime { get; set; } = DateTime.Now;
- [Column("offline_update_time")]
- public DateTime OfflineUpdateTime { get; set; } = DateTime.Now;
- [Column("timeout_remind_duration")]
- public float TimeoutRemindDuration { get; set; }
- }
- /// <summary>
- /// 协议类型
- /// </summary>
- public enum ProtocalTypeEnum
- {
- OPCUA,
- S7_1500,
- S7_1200,
- S7_400,
- S7_300,
- FTP,
- FANUC,
- HEIDEHAIN,
- MAZAK
- }
- }
|