2017-12-18 05:30:20 +00:00
|
|
|
|
using Bot.Rasa.Agents;
|
2017-12-18 13:31:15 +00:00
|
|
|
|
using Bot.Rasa.Intents;
|
2017-12-18 05:30:20 +00:00
|
|
|
|
using EntityFrameworkCore.BootKit;
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Bot.Rasa
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class EntityDbContextExtension
|
|
|
|
|
|
{
|
2017-12-30 20:26:35 +00:00
|
|
|
|
public static DbSet<Agent> Agent(this Database dc)
|
2017-12-18 05:30:20 +00:00
|
|
|
|
{
|
2017-12-30 20:26:35 +00:00
|
|
|
|
return dc.Table<Agent>();
|
2017-12-18 05:30:20 +00:00
|
|
|
|
}
|
2017-12-18 13:31:15 +00:00
|
|
|
|
|
2017-12-30 20:26:35 +00:00
|
|
|
|
public static DbSet<Intent> Intent(this Database dc)
|
2017-12-18 13:31:15 +00:00
|
|
|
|
{
|
2017-12-30 20:26:35 +00:00
|
|
|
|
return dc.Table<Intent>();
|
2017-12-18 13:31:15 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2017-12-30 20:26:35 +00:00
|
|
|
|
public static DbSet<IntentExpression> IntentExpression(this Database dc)
|
2017-12-18 13:31:15 +00:00
|
|
|
|
{
|
2017-12-30 20:26:35 +00:00
|
|
|
|
return dc.Table<IntentExpression>();
|
2017-12-18 13:31:15 +00:00
|
|
|
|
}
|
2017-12-18 05:30:20 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|