2017-12-30 20:26:35 +00:00
|
|
|
|
using EntityFrameworkCore.BootKit;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations;
|
|
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
2018-10-03 01:44:11 +00:00
|
|
|
|
namespace Platform.Dialogflow.Models
|
2017-12-30 20:26:35 +00:00
|
|
|
|
{
|
2018-10-03 01:44:11 +00:00
|
|
|
|
public class EntityEntry
|
2017-12-30 20:26:35 +00:00
|
|
|
|
{
|
2018-10-03 01:44:11 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Guid
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
[StringLength(36)]
|
|
|
|
|
|
public String Id { get; set; }
|
|
|
|
|
|
|
2017-12-30 20:26:35 +00:00
|
|
|
|
[Required]
|
|
|
|
|
|
[StringLength(36)]
|
2018-03-21 21:07:43 +00:00
|
|
|
|
public String EntityId { get; set; }
|
2017-12-30 20:26:35 +00:00
|
|
|
|
|
2018-04-02 22:42:11 +00:00
|
|
|
|
[MaxLength(64)]
|
2017-12-30 20:26:35 +00:00
|
|
|
|
public String Value { get; set; }
|
|
|
|
|
|
|
2018-04-02 22:42:11 +00:00
|
|
|
|
[ForeignKey("EntityEntryId")]
|
2018-05-22 00:39:33 +00:00
|
|
|
|
public List<EntrySynonym> Synonyms { get; set; }
|
2017-12-30 20:26:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|