30 lines
859 B
C#
30 lines
859 B
C#
using Microsoft.EntityFrameworkCore;
|
|
using kehati.Models.Entity.Master;
|
|
using kehati.Models.Entity;
|
|
|
|
namespace kehati.Database
|
|
{
|
|
public class ApplicationDbContext : DbContext
|
|
{
|
|
|
|
public ApplicationDbContext(
|
|
DbContextOptions<ApplicationDbContext> options
|
|
) : base(options)
|
|
{
|
|
|
|
}
|
|
|
|
public DbSet<User> User { get; set; }
|
|
public DbSet<Lokasi> Lokasi { get; set; }
|
|
public DbSet<Famili> Famili { get; set; }
|
|
public DbSet<Group> Group { get; set; }
|
|
public DbSet<Habitat> Habitat { get; set; }
|
|
public DbSet<LokasiTumbuhan> LokasiTumbuhan { get; set; }
|
|
public DbSet<LokasiFauna> LokasiFauna { get; set; }
|
|
public DbSet<Menu> Menu { get; set; }
|
|
public DbSet<Tumbuhan> Tumbuhan { get; set; }
|
|
public DbSet<Fauna> Fauna { get; set; }
|
|
|
|
|
|
}
|
|
} |