27 lines
556 B
C#
27 lines
556 B
C#
|
using System;
|
||
|
using System.Data.Entity;
|
||
|
using System.Linq;
|
||
|
using Service_Server.Models;
|
||
|
|
||
|
namespace Service_Server
|
||
|
{
|
||
|
|
||
|
|
||
|
public class DATABASE : DbContext
|
||
|
{
|
||
|
|
||
|
public DATABASE() : base("name=EHEC_DB"){}
|
||
|
public DbSet<Person> Persons { get; set; }
|
||
|
public DbSet<PStatus> PStatuses { get; set; }
|
||
|
public DbSet<Doctor> Doctors { get; set; }
|
||
|
public DbSet<Origin> Origins { get; set; }
|
||
|
|
||
|
|
||
|
}
|
||
|
|
||
|
//public class MyEntity
|
||
|
//{
|
||
|
// public int Id { get; set; }
|
||
|
// public string Name { get; set; }
|
||
|
//}
|
||
|
}
|