BotSharp/BotSharp.Core/Intents/IntentResponse.cs
haiping008@gmail.com 6c472545c0 Rename project
2018-03-28 17:08:49 -05:00

32 lines
879 B
C#

using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BotSharp.Core.Intents
{
[Table("Bot_IntentResponse")]
public class IntentResponse : DbRecord, IDbRecord
{
[Required]
[StringLength(36)]
public String IntentId { get; set; }
[MaxLength(128)]
public String Action { get; set; }
public Boolean ResetContexts { get; set; }
[ForeignKey("IntentResponseId")]
public List<IntentResponseContext> Contexts { get; set; }
[ForeignKey("IntentResponseId")]
public List<IntentResponseParameter> Parameters { get; set; }
[ForeignKey("IntentResponseId")]
public List<IntentResponseMessage> Messages { get; set; }
}
}