BotSharp/Bot.Rasa/Entities/EntityType.cs
2017-12-30 14:26:35 -06:00

27 lines
643 B
C#

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; }
}
}