BotSharp/Platform.Dialogflow/Models/EntityEntry.cs
2018-10-02 20:44:11 -05:00

29 lines
668 B
C#

using EntityFrameworkCore.BootKit;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace 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; }
}
}