BotSharp/BotSharp.Platform.Models/Intents/IntentExpression.cs

25 lines
578 B
C#
Raw Normal View History

2018-10-03 01:44:11 +00:00
using System;
2017-12-18 13:31:15 +00:00
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
2018-10-03 01:44:11 +00:00
namespace BotSharp.Platform.Models.Intents
2017-12-18 13:31:15 +00:00
{
2018-10-03 01:44:11 +00:00
public class IntentExpression
2017-12-18 13:31:15 +00:00
{
2017-12-30 20:26:35 +00:00
public IntentExpression()
{
Data = new List<IntentExpressionPart>();
2017-12-30 20:26:35 +00:00
}
2017-12-18 13:31:15 +00:00
[Required]
[StringLength(36)]
public String IntentId { get; set; }
2017-12-30 20:26:35 +00:00
[ForeignKey("ExpressionId")]
public List<IntentExpressionPart> Data { get; set; }
2017-12-18 13:31:15 +00:00
}
}