implemented basic crud logic; NB: CONNECTION STRING IN PROGRAM.CS IS EMPTY
This commit is contained in:
14
Backend.Api/Data/DataContext.cs
Normal file
14
Backend.Api/Data/DataContext.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Backend.Api.Data
|
||||
{
|
||||
public class DataContext : DbContext
|
||||
{
|
||||
public DataContext(DbContextOptions<DataContext> options) : base(options)
|
||||
{
|
||||
|
||||
}
|
||||
public DbSet<User> Users { get; set; }
|
||||
public DbSet<Vehicle> Vehicles { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user