21 lines
462 B
C#
21 lines
462 B
C#
using System.Collections.Generic;
|
|
using System.Linq;
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
using ProjectGrid.Models;
|
|
|
|
|
|
namespace ProjectGrid.Data
|
|
{
|
|
public partial class DataAccessContext : DbContext, IUserRepository
|
|
{
|
|
public DataAccessContext(DbContextOptions<DataAccessContext> options) : base(options) { }
|
|
|
|
|
|
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
|
{
|
|
modelBuilder.Entity<UserData>().ToTable("USER");
|
|
}
|
|
}
|
|
}
|