- adding internal private field into FormBase class - adding Extension methods into DependencyInjection namespace for use - adding 2 NavigateTo extension methods for DI using ServiceProvider - adding example project - adding to readme as example
12 lines
242 B
C#
12 lines
242 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace DependencyInjection.Database;
|
|
|
|
public class BotDbContext : DbContext
|
|
{
|
|
public BotDbContext(DbContextOptions options) : base(options)
|
|
{
|
|
}
|
|
|
|
public DbSet<User> Users { get; set; }
|
|
} |