BotSharp/Bot.Rasa/Intents/Intent.cs

30 lines
704 B
C#
Raw Normal View History

2017-12-30 20:26:35 +00:00
using EntityFrameworkCore.BootKit;
2017-12-18 05:30:20 +00:00
using System;
using System.Collections.Generic;
2017-12-18 13:31:15 +00:00
using System.ComponentModel.DataAnnotations;
2017-12-18 05:30:20 +00:00
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace Bot.Rasa.Intents
{
2018-01-02 18:05:35 +00:00
/// <summary>
/// Intent Table
/// </summary>
2017-12-30 20:26:35 +00:00
[Table("Bot_Intent")]
public class Intent : DbRecord, IDbRecord
2017-12-18 05:30:20 +00:00
{
2017-12-18 13:31:15 +00:00
[Required]
[StringLength(36)]
public String AgentId { get; set; }
[MaxLength(32)]
2017-12-18 05:30:20 +00:00
public String Name { get; set; }
2017-12-18 13:31:15 +00:00
[MaxLength(256)]
public String Description { get; set; }
[ForeignKey("IntentId")]
2017-12-30 20:26:35 +00:00
public List<IntentExpression> Expressions { get; set; }
2017-12-18 05:30:20 +00:00
}
}