BotSharp/BotSharp.Platform.Dialogflow/Models/EntityEntry.cs

29 lines
677 B
C#
Raw Normal View History

using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace BotSharp.Platform.Dialogflow.Models
{
public class EntityEntry
{
/// <summary>
/// Guid
/// </summary>
[StringLength(36)]
public String Id { get; set; }
[Required]
[StringLength(36)]
public String EntityId { get; set; }
[MaxLength(64)]
public String Value { get; set; }
[ForeignKey("EntityEntryId")]
public List<EntrySynonym> Synonyms { get; set; }
}
}