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

27 lines
665 B
C#

using Bot.Rasa.Entities;
using Bot.Rasa.Intents;
using EntityFrameworkCore.BootKit;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Bot.Rasa.Agents
{
[Table("Bot_Agent")]
public class Agent : DbRecord, IDbRecord
{
[MaxLength(64)]
public String Name { get; set; }
[ForeignKey("AgentId")]
public List<Intent> Intents { get; set; }
[ForeignKey("AgentId")]
[JsonProperty("entity_types")]
public List<EntityType> EntityTypes { get; set; }
}
}