29 lines
915 B
C#
29 lines
915 B
C#
using BrowserHelper.Settings;
|
|
using DataDomain;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Options;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DatamodelLibrary
|
|
{
|
|
public class StockContext : DbContext
|
|
{
|
|
|
|
public DbSet<StockMember> Stocks { get; set; }
|
|
public DbSet<Person> Persons { get; set; }
|
|
public DbSet<Address> Addresses { get; set; }
|
|
public DbSet<PersonStock> PersonStocks { get; set; }
|
|
public DbSet<BackupRegister> BackupRegings { get; set; }
|
|
public DbSet<StockGroupModel> StockGroups { get; set; }
|
|
|
|
|
|
protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
=> options.UseSqlite("Data Source=C:\\Aktier\\net6.0-windows\\NewData\\Stocks.db");
|
|
//=> options.UseSqlite(@"Data Source=.\Stocks.db");
|
|
}
|
|
}
|