BotSharp/Bot.Rasa/Entities/EntityType.cs
2018-01-02 12:05:35 -06:00

28 lines
662 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; }
[Required]
[MaxLength(64)]
public String Name { get; set; }
[NotMapped]
public List<String> Values { get; set; }
[ForeignKey("EntityTypeId")]
public List<EntityItem> Items { get; set; }
}
}