BotSharp/Bot.Rasa/Entities/Entity.cs
haiping008@gmail.com 33d42ae035 1. Added context in/ out, lifespan.
2. Import agent in Dialogflow format.
3. Lazy training per input contexts.
2018-03-21 16:07:43 -05:00

28 lines
653 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_Entity")]
public class Entity : 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("EntityId")]
public List<EntityEntry> Entries { get; set; }
}
}