feat: add DI form factory

This commit is contained in:
ZavaruKitsu
2022-08-19 15:54:36 +03:00
parent df7880fcf3
commit b2d4c4c3f8
10 changed files with 171 additions and 1 deletions
@@ -0,0 +1,12 @@
using Microsoft.EntityFrameworkCore;
namespace EFCoreBot.Database;
public class BotDbContext : DbContext
{
public BotDbContext(DbContextOptions options) : base(options)
{
}
public DbSet<User> Users { get; set; }
}
+7
View File
@@ -0,0 +1,7 @@
namespace EFCoreBot.Database;
public class User
{
public long Id { get; set; }
public string LastMessage { get; set; }
}