Поправил название класса контекста бд
This commit is contained in:
parent
a48c0c75a5
commit
03bb104df1
@ -36,7 +36,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static Course Create(SecuritySystemDatabase context, CourseBindingModel model)
|
public static Course Create(PolyclinicDatabase context, CourseBindingModel model)
|
||||||
{
|
{
|
||||||
return new Course()
|
return new Course()
|
||||||
{
|
{
|
||||||
@ -70,7 +70,7 @@ namespace PolyclinicDatabaseImplement.Models
|
|||||||
CourseDiagnoses = CourseDiagnoses
|
CourseDiagnoses = CourseDiagnoses
|
||||||
};
|
};
|
||||||
|
|
||||||
public void UpdateDiagnoses(SecuritySystemDatabase context, CourseBindingModel model)
|
public void UpdateDiagnoses(PolyclinicDatabase context, CourseBindingModel model)
|
||||||
{
|
{
|
||||||
//var courseDiagnoses = context.CourseDiagnoses.Where(rec => rec.CourseId == model.Id).ToList();
|
//var courseDiagnoses = context.CourseDiagnoses.Where(rec => rec.CourseId == model.Id).ToList();
|
||||||
//if (courseDiagnoses != null && courseDiagnoses.Count > 0)
|
//if (courseDiagnoses != null && courseDiagnoses.Count > 0)
|
||||||
|
@ -3,7 +3,7 @@ using PolyclinicDatabaseImplement.Models;
|
|||||||
|
|
||||||
namespace SecuritySystemDatabaseImplement
|
namespace SecuritySystemDatabaseImplement
|
||||||
{
|
{
|
||||||
public class SecuritySystemDatabase : DbContext
|
public class PolyclinicDatabase : DbContext
|
||||||
{
|
{
|
||||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user