BotSharp/BotSharp.Core/Entities/Entity.cs

29 lines
679 B
C#
Raw Normal View History

2017-12-30 20:26:35 +00:00
using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
2018-03-28 22:08:49 +00:00
namespace BotSharp.Core.Entities
2017-12-30 20:26:35 +00:00
{
[Table("Bot_Entity")]
public class Entity : DbRecord, IDbRecord
2017-12-30 20:26:35 +00:00
{
[Required]
[StringLength(36)]
public String AgentId { get; set; }
2018-01-02 18:05:35 +00:00
[Required]
2017-12-30 20:26:35 +00:00
[MaxLength(64)]
public String Name { get; set; }
[ForeignKey("EntityId")]
public List<EntityEntry> Entries { get; set; }
2018-04-02 22:42:11 +00:00
public bool IsOverridable { get; set; }
public bool IsEnum { get; set; }
2017-12-30 20:26:35 +00:00
}
}