You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cat_cafe/cat_cafe/Repositories/CustomerContext.cs

34 lines
966 B

//using System;
//using cat_cafe.Entities;
//using Microsoft.EntityFrameworkCore;
//namespace cat_cafe.Repositories
//{
// public class CustomerContext:DbContext
// {
// public readonly IConfiguration configuration;
// public string DbPath { get; }
// public CustomerContext(IConfiguration _configuration)
// {
// configuration = _configuration;
// var folder = Environment.SpecialFolder.LocalApplicationData;
// var path = Environment.GetFolderPath(folder);
// DbPath = System.IO.Path.Join(path, "CatCafe.db");
// }
// protected override void OnConfiguring(DbContextOptionsBuilder opts)
// {
// opts.UseSqlite($"Data Source=DbPath.db");
// }
// /*public CustomerContext(DbContextOptions<CustomerContext> options)
// : base(options)
// { }*/
// public DbSet<Customer> Customers { get; set; } = null!;
// }
//}