- Added DOC - Added Patient - Added Notifications - Added Messages - Various Refactoring
25 lines
891 B
C#
25 lines
891 B
C#
using LinqToDB;
|
|
using LinqToDB.Data;
|
|
using LinqToDB.DataProvider;
|
|
using SeniorAssistant.Models;
|
|
using SeniorAssistant.Models.Users;
|
|
|
|
namespace SeniorAssistant.Data
|
|
{
|
|
public class SeniorDataContext : DataConnection
|
|
{
|
|
public SeniorDataContext(IDataProvider dataProvider, string connectionString)
|
|
: base(dataProvider, connectionString)
|
|
{ }
|
|
|
|
public ITable<User> Users => GetTable<User>();
|
|
public ITable<Heartbeat> Heartbeats => GetTable<Heartbeat>();
|
|
public ITable<Sleep> Sleeps => GetTable<Sleep>();
|
|
public ITable<Step> Steps => GetTable<Step>();
|
|
public ITable<Doctor> Doctors => GetTable<Doctor>();
|
|
public ITable<Patient> Patients => GetTable<Patient>();
|
|
public ITable<Notification> Notifications => GetTable<Notification>();
|
|
public ITable<Message> Messages => GetTable<Message>();
|
|
}
|
|
}
|