24 lines
No EOL
715 B
C#
24 lines
No EOL
715 B
C#
// using Microsoft.EntityFrameworkCore;
|
|
// using Microsoft.Extensions.Configuration;
|
|
// using Sledgemapper.Entities;
|
|
|
|
// namespace Sledgemapper.Helpers
|
|
// {
|
|
// public class DataContext : DbContext
|
|
// {
|
|
// protected readonly IConfiguration Configuration;
|
|
|
|
// public DataContext(IConfiguration configuration)
|
|
// {
|
|
// Configuration = configuration;
|
|
// }
|
|
|
|
// protected override void OnConfiguring(DbContextOptionsBuilder options)
|
|
// {
|
|
// // connect to sql server database
|
|
// options.UseSqlServer(Configuration.GetConnectionString("WebApiDatabase"));
|
|
// }
|
|
|
|
// public DbSet<User> Users { get; set; }
|
|
// }
|
|
// } |