BotSharp/Bot.Rasa/Entities/EntityType.cs

27 lines
643 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;
namespace Bot.Rasa.Entities
{
[Table("Bot_EntityType")]
public class EntityType : DbRecord, IDbRecord
{
[Required]
[StringLength(36)]
public String AgentId { get; set; }
[MaxLength(64)]
public String Name { get; set; }
[NotMapped]
public List<String> Values { get; set; }
[ForeignKey("EntityTypeId")]
public List<EntityItem> Items { get; set; }
}
}