27 lines
643 B
C#
27 lines
643 B
C#
using EntityFrameworkCore.BootKit;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Text;
|
|
|
|
namespace Bot.Rasa.Entities
|
|
{
|
|
[Table("Bot_EntityType")]
|
|
public class EntityType : DbRecord, IDbRecord
|
|
{
|
|
[Required]
|
|
[StringLength(36)]
|
|
public String AgentId { get; set; }
|
|
|
|
[MaxLength(64)]
|
|
public String Name { get; set; }
|
|
|
|
[NotMapped]
|
|
public List<String> Values { get; set; }
|
|
|
|
[ForeignKey("EntityTypeId")]
|
|
public List<EntityItem> Items { get; set; }
|
|
}
|
|
}
|