20 lines
540 B
C#
20 lines
540 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace WGneu
|
|
{
|
|
public class WGContext : DbContext
|
|
{
|
|
public DbSet<Country> Countries { get; set; }
|
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
|
{
|
|
optionsBuilder.UseSqlite("Data Source=\"C:\\Users\\Lorenz\\Desktop\\wgtest.sqlite3\"");
|
|
optionsBuilder.UseLazyLoadingProxies();
|
|
}
|
|
}
|
|
}
|