diff --git a/StudentProgressRecord/Entity/Enums/Direction.cs b/StudentProgressRecord/Entity/Enums/Direction.cs index 6a9e6ef..e1541b2 100644 --- a/StudentProgressRecord/Entity/Enums/Direction.cs +++ b/StudentProgressRecord/Entity/Enums/Direction.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity.Enums +namespace StudentProgressRecord.Entity.Enums { [Flags] public enum Direction diff --git a/StudentProgressRecord/Entity/Enums/Operations.cs b/StudentProgressRecord/Entity/Enums/Operations.cs index fbaa34b..e9ba0e4 100644 --- a/StudentProgressRecord/Entity/Enums/Operations.cs +++ b/StudentProgressRecord/Entity/Enums/Operations.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity.Enums +namespace StudentProgressRecord.Entity.Enums { public enum Operations { diff --git a/StudentProgressRecord/Entity/Marks.cs b/StudentProgressRecord/Entity/Marks.cs index 641d923..1773539 100644 --- a/StudentProgressRecord/Entity/Marks.cs +++ b/StudentProgressRecord/Entity/Marks.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity +namespace StudentProgressRecord.Entity { public class Marks { diff --git a/StudentProgressRecord/Entity/Statement.cs b/StudentProgressRecord/Entity/Statement.cs index 6c7c009..307e468 100644 --- a/StudentProgressRecord/Entity/Statement.cs +++ b/StudentProgressRecord/Entity/Statement.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel.DataAnnotations.Schema; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity +namespace StudentProgressRecord.Entity { public class Statement { @@ -19,7 +12,7 @@ namespace StudentProgressRecord.Entity public IEnumerable Marks { get; set; } = []; - public static Statement CreateOperation(long id, long subjectId, long teacherId, + public static Statement CreateOperation(long id, long subjectId, long teacherId, DateTime timeStamp, IEnumerable marks) { return new Statement diff --git a/StudentProgressRecord/Entity/Student.cs b/StudentProgressRecord/Entity/Student.cs index ba2ed2c..f6e0355 100644 --- a/StudentProgressRecord/Entity/Student.cs +++ b/StudentProgressRecord/Entity/Student.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity +namespace StudentProgressRecord.Entity { public class Student { @@ -18,7 +12,7 @@ namespace StudentProgressRecord.Entity public bool Domitory { get; set; } - public static Student CreateEntity(long id, string name, bool familyPos, + public static Student CreateEntity(long id, string name, bool familyPos, bool domitory) { return new Student diff --git a/StudentProgressRecord/Entity/StudentTransition.cs b/StudentProgressRecord/Entity/StudentTransition.cs index 5e69af6..10bc2c6 100644 --- a/StudentProgressRecord/Entity/StudentTransition.cs +++ b/StudentProgressRecord/Entity/StudentTransition.cs @@ -1,9 +1,4 @@ using StudentProgressRecord.Entity.Enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.Entity { diff --git a/StudentProgressRecord/Entity/Subject.cs b/StudentProgressRecord/Entity/Subject.cs index 16598d6..0e42629 100644 --- a/StudentProgressRecord/Entity/Subject.cs +++ b/StudentProgressRecord/Entity/Subject.cs @@ -1,9 +1,4 @@ using StudentProgressRecord.Entity.Enums; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.Entity { diff --git a/StudentProgressRecord/Entity/Teacher.cs b/StudentProgressRecord/Entity/Teacher.cs index 410b19f..bc0f3fe 100644 --- a/StudentProgressRecord/Entity/Teacher.cs +++ b/StudentProgressRecord/Entity/Teacher.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.Entity +namespace StudentProgressRecord.Entity { public class Teacher { diff --git a/StudentProgressRecord/Forms/FormViewEntities/FormViewStatement.cs b/StudentProgressRecord/Forms/FormViewEntities/FormViewStatement.cs index ec13869..bc86049 100644 --- a/StudentProgressRecord/Forms/FormViewEntities/FormViewStatement.cs +++ b/StudentProgressRecord/Forms/FormViewEntities/FormViewStatement.cs @@ -1,14 +1,4 @@ using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; using Unity; namespace StudentProgressRecord.Forms.FormViewEntities diff --git a/StudentProgressRecord/Forms/FormViewEntities/FormViewStudentTransition.cs b/StudentProgressRecord/Forms/FormViewEntities/FormViewStudentTransition.cs index 9f80bf7..e2e6583 100644 --- a/StudentProgressRecord/Forms/FormViewEntities/FormViewStudentTransition.cs +++ b/StudentProgressRecord/Forms/FormViewEntities/FormViewStudentTransition.cs @@ -1,16 +1,4 @@ using StudentProgressRecord.IRepositories; -using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; -using System.Xml.Linq; using Unity; namespace StudentProgressRecord.Forms.FormViewEntities @@ -25,7 +13,7 @@ namespace StudentProgressRecord.Forms.FormViewEntities { InitializeComponent(); _container = container ?? throw new ArgumentNullException(nameof(container)); - _studentTransitionRepository= studentTransitionRepository ?? throw new ArgumentNullException(nameof(studentTransitionRepository)); + _studentTransitionRepository = studentTransitionRepository ?? throw new ArgumentNullException(nameof(studentTransitionRepository)); } private void FormViewStudentTransition_Load(object sender, EventArgs e) diff --git a/StudentProgressRecord/Forms/FormViewEntities/FormViewStudents.cs b/StudentProgressRecord/Forms/FormViewEntities/FormViewStudents.cs index 9761ff6..0dfb6f8 100644 --- a/StudentProgressRecord/Forms/FormViewEntities/FormViewStudents.cs +++ b/StudentProgressRecord/Forms/FormViewEntities/FormViewStudents.cs @@ -1,14 +1,4 @@ using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; using Unity; namespace StudentProgressRecord.Forms.FormViewEntities diff --git a/StudentProgressRecord/Forms/FormViewEntities/FormViewSubjects.cs b/StudentProgressRecord/Forms/FormViewEntities/FormViewSubjects.cs index 914c8af..cddd945 100644 --- a/StudentProgressRecord/Forms/FormViewEntities/FormViewSubjects.cs +++ b/StudentProgressRecord/Forms/FormViewEntities/FormViewSubjects.cs @@ -1,14 +1,4 @@ using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; using Unity; namespace StudentProgressRecord.Forms.FormViewEntities diff --git a/StudentProgressRecord/Forms/FormViewEntities/FormViewTeachers.cs b/StudentProgressRecord/Forms/FormViewEntities/FormViewTeachers.cs index a4c34d4..b6395a9 100644 --- a/StudentProgressRecord/Forms/FormViewEntities/FormViewTeachers.cs +++ b/StudentProgressRecord/Forms/FormViewEntities/FormViewTeachers.cs @@ -1,13 +1,4 @@ using StudentProgressRecord.Repositories; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; using Unity; namespace StudentProgressRecord.Forms.FormViewEntities @@ -74,7 +65,8 @@ namespace StudentProgressRecord.Forms.FormViewEntities private void buttonDelete_Click(object sender, EventArgs e) { - if(!TryGetIdFromSelectesRow(out var findId)){ + if (!TryGetIdFromSelectesRow(out var findId)) + { return; } if (MessageBox.Show("Удалить запись?", "Удаление", diff --git a/StudentProgressRecord/Forms/FormsEntity/FormStatement.cs b/StudentProgressRecord/Forms/FormsEntity/FormStatement.cs index 9ed164a..95e70ad 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormStatement.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormStatement.cs @@ -1,14 +1,5 @@ using StudentProgressRecord.Entity; using StudentProgressRecord.Repositories; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace StudentProgressRecord.Forms { @@ -34,10 +25,10 @@ namespace StudentProgressRecord.Forms comboBoxSubject.ValueMember = "Id"; - var list = new List() {1,2,3,4,5}; + var list = new List() { 1, 2, 3, 4, 5 }; columnMark.ValueType = typeof(int); columnMark.DataSource = list; - + columnStudent.DataSource = studentRepository.ReadStudents(); columnStudent.DisplayMember = "Name"; columnStudent.ValueMember = "Id"; diff --git a/StudentProgressRecord/Forms/FormsEntity/FormStudent.cs b/StudentProgressRecord/Forms/FormsEntity/FormStudent.cs index 95c528e..7757f06 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormStudent.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormStudent.cs @@ -1,15 +1,5 @@ using StudentProgressRecord.Entity; using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace StudentProgressRecord.Forms { diff --git a/StudentProgressRecord/Forms/FormsEntity/FormStudentTransition.cs b/StudentProgressRecord/Forms/FormsEntity/FormStudentTransition.cs index 9862470..c94689e 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormStudentTransition.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormStudentTransition.cs @@ -1,18 +1,7 @@ -using Microsoft.VisualBasic.FileIO; -using StudentProgressRecord.Entity; +using StudentProgressRecord.Entity; using StudentProgressRecord.Entity.Enums; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace StudentProgressRecord.Forms { @@ -51,7 +40,7 @@ namespace StudentProgressRecord.Forms Console.Write(comboBoxOperations.SelectedItem); _studentTransitionRepository.CreateStudentTransition( StudentTransition.CreateOperation( - 0L, + 0L, (long)comboBoxStudent.SelectedValue!, (Operations)comboBoxOperations.SelectedItem!, dateTimePicker.Value) diff --git a/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs b/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs index 5ceb3ac..8edd933 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormSubject.cs @@ -1,16 +1,6 @@ -using Microsoft.VisualBasic.FileIO; -using StudentProgressRecord.Entity; +using StudentProgressRecord.Entity; using StudentProgressRecord.Entity.Enums; using StudentProgressRecord.Repositories; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace StudentProgressRecord { @@ -62,7 +52,7 @@ namespace StudentProgressRecord { try { - if (string.IsNullOrWhiteSpace(textBoxSubject.Text) || + if (string.IsNullOrWhiteSpace(textBoxSubject.Text) || checkedListBoxDir.CheckedItems.Count == 0) { throw new Exception("Имя не может быть пустым"); diff --git a/StudentProgressRecord/Forms/FormsEntity/FormTeacher.cs b/StudentProgressRecord/Forms/FormsEntity/FormTeacher.cs index ad95f2e..e41c43c 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormTeacher.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormTeacher.cs @@ -1,15 +1,5 @@ using StudentProgressRecord.Entity; using StudentProgressRecord.Repositories; -using StudentProgressRecord.RepositoryImp; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; namespace StudentProgressRecord.Forms { diff --git a/StudentProgressRecord/Forms/FormsEntity/FormUniversity.cs b/StudentProgressRecord/Forms/FormsEntity/FormUniversity.cs index 5260e83..baf7748 100644 --- a/StudentProgressRecord/Forms/FormsEntity/FormUniversity.cs +++ b/StudentProgressRecord/Forms/FormsEntity/FormUniversity.cs @@ -1,13 +1,4 @@ using StudentProgressRecord.Forms.FormViewEntities; -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; using Unity; namespace StudentProgressRecord @@ -87,6 +78,6 @@ namespace StudentProgressRecord } } - + } } diff --git a/StudentProgressRecord/IRepositories/IConnectionString.cs b/StudentProgressRecord/IRepositories/IConnectionString.cs index 4dac8fe..783646b 100644 --- a/StudentProgressRecord/IRepositories/IConnectionString.cs +++ b/StudentProgressRecord/IRepositories/IConnectionString.cs @@ -1,10 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace StudentProgressRecord.IRepositories +namespace StudentProgressRecord.IRepositories { public interface IConnectionString { diff --git a/StudentProgressRecord/IRepositories/IStatementRepository.cs b/StudentProgressRecord/IRepositories/IStatementRepository.cs index 05f2b28..a9a8cab 100644 --- a/StudentProgressRecord/IRepositories/IStatementRepository.cs +++ b/StudentProgressRecord/IRepositories/IStatementRepository.cs @@ -4,7 +4,7 @@ namespace StudentProgressRecord.Repositories { public interface IStatementRepository { - IEnumerable ReadStatements(long? subjectId = null, long? teacherId = null, DateTime? dateFrom = null, DateTime? dateTo=null); + IEnumerable ReadStatements(long? subjectId = null, long? teacherId = null, DateTime? dateFrom = null, DateTime? dateTo = null); void CreateStatement(Statement statement); void DeleteStatement(long id); diff --git a/StudentProgressRecord/IRepositories/IStudentRepository.cs b/StudentProgressRecord/IRepositories/IStudentRepository.cs index 3990746..638f420 100644 --- a/StudentProgressRecord/IRepositories/IStudentRepository.cs +++ b/StudentProgressRecord/IRepositories/IStudentRepository.cs @@ -1,15 +1,10 @@ using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.Repositories { public interface IStudentRepository { - IEnumerable ReadStudents(bool? familyPos=null, bool? domitory=null); + IEnumerable ReadStudents(bool? familyPos = null, bool? domitory = null); Student ReadStudentById(long id); void CreateStudent(Student student); void UpdateStudent(Student student); diff --git a/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs b/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs index 21a1d6d..34e519c 100644 --- a/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs +++ b/StudentProgressRecord/IRepositories/IStudentTransitionRepository.cs @@ -1,9 +1,4 @@ using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.IRepositories { diff --git a/StudentProgressRecord/IRepositories/ISubjectRepository.cs b/StudentProgressRecord/IRepositories/ISubjectRepository.cs index a5e3dec..99ab85c 100644 --- a/StudentProgressRecord/IRepositories/ISubjectRepository.cs +++ b/StudentProgressRecord/IRepositories/ISubjectRepository.cs @@ -1,9 +1,4 @@ using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.Repositories { diff --git a/StudentProgressRecord/IRepositories/ITeacherRepository.cs b/StudentProgressRecord/IRepositories/ITeacherRepository.cs index f88c92f..6564448 100644 --- a/StudentProgressRecord/IRepositories/ITeacherRepository.cs +++ b/StudentProgressRecord/IRepositories/ITeacherRepository.cs @@ -1,9 +1,4 @@ using StudentProgressRecord.Entity; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.Repositories { diff --git a/StudentProgressRecord/Program.cs b/StudentProgressRecord/Program.cs index 05ab2e7..2f3a34d 100644 --- a/StudentProgressRecord/Program.cs +++ b/StudentProgressRecord/Program.cs @@ -1,8 +1,6 @@ using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; using Serilog; - -using StudentProgressRecord.Forms; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; using StudentProgressRecord.RepositoryImp; @@ -30,7 +28,7 @@ namespace StudentProgressRecord container.AddExtension(new LoggingExtension(CreateLoggerFactory())); - container.RegisterType(new SingletonLifetimeManager()); + container.RegisterType(new SingletonLifetimeManager()); container.RegisterType (new TransientLifetimeManager()); @@ -40,7 +38,7 @@ namespace StudentProgressRecord container.RegisterType (new TransientLifetimeManager()); - + container.RegisterType (new TransientLifetimeManager()); diff --git a/StudentProgressRecord/RepositoryImp/ConnectionString.cs b/StudentProgressRecord/RepositoryImp/ConnectionString.cs index 7f8264e..f5b53c0 100644 --- a/StudentProgressRecord/RepositoryImp/ConnectionString.cs +++ b/StudentProgressRecord/RepositoryImp/ConnectionString.cs @@ -1,10 +1,4 @@ -using Microsoft.VisualBasic.ApplicationServices; -using StudentProgressRecord.IRepositories; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using StudentProgressRecord.IRepositories; namespace StudentProgressRecord.RepositoryImp { diff --git a/StudentProgressRecord/RepositoryImp/StatementRepository.cs b/StudentProgressRecord/RepositoryImp/StatementRepository.cs index 422c1f6..53f8424 100644 --- a/StudentProgressRecord/RepositoryImp/StatementRepository.cs +++ b/StudentProgressRecord/RepositoryImp/StatementRepository.cs @@ -5,7 +5,6 @@ using Npgsql; using StudentProgressRecord.Entity; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; -using System.Data.SqlClient; namespace StudentProgressRecord.RepositoryImp @@ -32,18 +31,18 @@ namespace StudentProgressRecord.RepositoryImp connection.Open(); using var transaction = connection.BeginTransaction(); - + var queryInsert = @" INSERT INTO Statement (SubjectId, TeacherId, Date) VALUES (@SubjectId, @TeacherId, @Date); SELECT MAX(Id) FROM Statement"; - + var statementID = connection.QueryFirst(queryInsert, statement, transaction); - + var querySubInsert = @" INSERT INTO Marks (StatementId, StudentId, Mark) VALUES (@StatementId, @StudentId,@Mark)"; - + foreach (var elem in statement.Marks) { connection.Execute(querySubInsert, new @@ -82,7 +81,7 @@ namespace StudentProgressRecord.RepositoryImp } } - public IEnumerable ReadStatements(long? subjectId = null, long? teacherId = null, + public IEnumerable ReadStatements(long? subjectId = null, long? teacherId = null, DateTime? dateFrom = null, DateTime? dateTo = null) { _logger.LogInformation("Получение всех объектов"); diff --git a/StudentProgressRecord/RepositoryImp/StudentRepository.cs b/StudentProgressRecord/RepositoryImp/StudentRepository.cs index a2e266a..5715476 100644 --- a/StudentProgressRecord/RepositoryImp/StudentRepository.cs +++ b/StudentProgressRecord/RepositoryImp/StudentRepository.cs @@ -2,15 +2,9 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Npgsql; -using Serilog.Core; using StudentProgressRecord.Entity; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.RepositoryImp { diff --git a/StudentProgressRecord/RepositoryImp/StudentTransitionRepository.cs b/StudentProgressRecord/RepositoryImp/StudentTransitionRepository.cs index d54c6f6..9b66066 100644 --- a/StudentProgressRecord/RepositoryImp/StudentTransitionRepository.cs +++ b/StudentProgressRecord/RepositoryImp/StudentTransitionRepository.cs @@ -1,10 +1,9 @@ -using StudentProgressRecord.Entity; -using StudentProgressRecord.IRepositories; -using StudentProgressRecord.Entity.Enums; +using Dapper; +using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Npgsql; -using Microsoft.Extensions.Logging; -using Dapper; +using StudentProgressRecord.Entity; +using StudentProgressRecord.IRepositories; namespace StudentProgressRecord.RepositoryImp { public class StudentTransitionRepository : IStudentTransitionRepository diff --git a/StudentProgressRecord/RepositoryImp/SubjectRepository.cs b/StudentProgressRecord/RepositoryImp/SubjectRepository.cs index b7487a9..c3c18b0 100644 --- a/StudentProgressRecord/RepositoryImp/SubjectRepository.cs +++ b/StudentProgressRecord/RepositoryImp/SubjectRepository.cs @@ -3,7 +3,6 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using Npgsql; using StudentProgressRecord.Entity; -using StudentProgressRecord.Entity.Enums; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; diff --git a/StudentProgressRecord/RepositoryImp/TeacherRepository.cs b/StudentProgressRecord/RepositoryImp/TeacherRepository.cs index 8fdc506..2357cb6 100644 --- a/StudentProgressRecord/RepositoryImp/TeacherRepository.cs +++ b/StudentProgressRecord/RepositoryImp/TeacherRepository.cs @@ -5,12 +5,6 @@ using Npgsql; using StudentProgressRecord.Entity; using StudentProgressRecord.IRepositories; using StudentProgressRecord.Repositories; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net.NetworkInformation; -using System.Text; -using System.Threading.Tasks; namespace StudentProgressRecord.RepositoryImp {