Создание моделей
This commit is contained in:
parent
8b58ef3164
commit
e0203bf412
14
TaskTrackerDataModels/Models/IDirectionModel.cs
Normal file
14
TaskTrackerDataModels/Models/IDirectionModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TaskTrackerDataModels.Models
|
||||
{
|
||||
internal interface IDirectionModel : IId
|
||||
{
|
||||
Dictionary<int, (IStudentModel, int)> DirectionStudents { get; }
|
||||
Dictionary<int, (ISubjectModel, int)> DirectionSubjects { get; }
|
||||
}
|
||||
}
|
14
TaskTrackerDataModels/Models/IExamModel.cs
Normal file
14
TaskTrackerDataModels/Models/IExamModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TaskTrackerDataModels.Models
|
||||
{
|
||||
internal interface IExamModel : IId
|
||||
{
|
||||
int SubjectId { get; }
|
||||
DateTime Date { get; }
|
||||
}
|
||||
}
|
15
TaskTrackerDataModels/Models/IResultModel.cs
Normal file
15
TaskTrackerDataModels/Models/IResultModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TaskTrackerDataModels.Models
|
||||
{
|
||||
internal interface IResultModel : IId
|
||||
{
|
||||
string Grade { get; }
|
||||
int StudentId { get; }
|
||||
int SubjectId { get; }
|
||||
}
|
||||
}
|
14
TaskTrackerDataModels/Models/IStudentModel.cs
Normal file
14
TaskTrackerDataModels/Models/IStudentModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TaskTrackerDataModels.Models
|
||||
{
|
||||
internal interface IStudentModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
DateTime DateBirth { get; }
|
||||
}
|
||||
}
|
13
TaskTrackerDataModels/Models/ISubjectModel.cs
Normal file
13
TaskTrackerDataModels/Models/ISubjectModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace TaskTrackerDataModels.Models
|
||||
{
|
||||
internal interface ISubjectModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
@ -10,7 +10,7 @@ namespace TaskTrackerDatabase
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-H8060U3\SQLEXPRESS;Initial Catalog=TaskTrackerDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-N8BRIPR\SQLEXPRESS;Initial Catalog=TaskTrackerDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user