BotSharp/BotSharp.Core/Entities/EntityEntry.cs

24 lines
588 B
C#
Raw Normal View History

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-03-28 22:08:49 +00:00
namespace BotSharp.Core.Entities
2017-12-30 20:26:35 +00:00
{
[Table("Bot_EntityEntry")]
public class EntityEntry : DbRecord, IDbRecord
2017-12-30 20:26:35 +00:00
{
[Required]
[StringLength(36)]
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
}
}