Очистка using
This commit is contained in:
parent
8654f437d4
commit
5b75333c03
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace StudentProgressRecord.Entity.Enums
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity.Enums
|
|
||||||
{
|
{
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum Direction
|
public enum Direction
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace StudentProgressRecord.Entity.Enums
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity.Enums
|
|
||||||
{
|
{
|
||||||
public enum Operations
|
public enum Operations
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace StudentProgressRecord.Entity
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity
|
|
||||||
{
|
{
|
||||||
public class Marks
|
public class Marks
|
||||||
{
|
{
|
||||||
|
@ -1,11 +1,4 @@
|
|||||||
using System;
|
namespace StudentProgressRecord.Entity
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.ComponentModel.DataAnnotations.Schema;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity
|
|
||||||
{
|
{
|
||||||
public class Statement
|
public class Statement
|
||||||
{
|
{
|
||||||
@ -19,7 +12,7 @@ namespace StudentProgressRecord.Entity
|
|||||||
|
|
||||||
public IEnumerable<Marks> Marks { get; private set; } = [];
|
public IEnumerable<Marks> Marks { get; private 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> marks)
|
DateTime timeStamp, IEnumerable<Marks> marks)
|
||||||
{
|
{
|
||||||
return new Statement
|
return new Statement
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace StudentProgressRecord.Entity
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity
|
|
||||||
{
|
{
|
||||||
public class Student
|
public class Student
|
||||||
{
|
{
|
||||||
@ -18,7 +12,7 @@ namespace StudentProgressRecord.Entity
|
|||||||
public bool Domitory { get; set; }
|
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)
|
bool domitory)
|
||||||
{
|
{
|
||||||
return new Student
|
return new Student
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
using StudentProgressRecord.Entity.Enums;
|
using StudentProgressRecord.Entity.Enums;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity
|
namespace StudentProgressRecord.Entity
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
using StudentProgressRecord.Entity.Enums;
|
using StudentProgressRecord.Entity.Enums;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity
|
namespace StudentProgressRecord.Entity
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,4 @@
|
|||||||
using System;
|
namespace StudentProgressRecord.Entity
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Entity
|
|
||||||
{
|
{
|
||||||
public class Teacher
|
public class Teacher
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,4 @@
|
|||||||
using StudentProgressRecord.Repositories;
|
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;
|
using Unity;
|
||||||
|
|
||||||
namespace StudentProgressRecord.Forms.FormViewEntities
|
namespace StudentProgressRecord.Forms.FormViewEntities
|
||||||
|
@ -1,16 +1,4 @@
|
|||||||
using StudentProgressRecord.IRepositories;
|
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;
|
using Unity;
|
||||||
|
|
||||||
namespace StudentProgressRecord.Forms.FormViewEntities
|
namespace StudentProgressRecord.Forms.FormViewEntities
|
||||||
@ -25,7 +13,7 @@ namespace StudentProgressRecord.Forms.FormViewEntities
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_container = container ?? throw new ArgumentNullException(nameof(container));
|
_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)
|
private void FormViewStudentTransition_Load(object sender, EventArgs e)
|
||||||
|
@ -1,14 +1,4 @@
|
|||||||
using StudentProgressRecord.Repositories;
|
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;
|
using Unity;
|
||||||
|
|
||||||
namespace StudentProgressRecord.Forms.FormViewEntities
|
namespace StudentProgressRecord.Forms.FormViewEntities
|
||||||
|
@ -1,14 +1,4 @@
|
|||||||
using StudentProgressRecord.Repositories;
|
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;
|
using Unity;
|
||||||
|
|
||||||
namespace StudentProgressRecord.Forms.FormViewEntities
|
namespace StudentProgressRecord.Forms.FormViewEntities
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
using StudentProgressRecord.Repositories;
|
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;
|
using Unity;
|
||||||
|
|
||||||
namespace StudentProgressRecord.Forms.FormViewEntities
|
namespace StudentProgressRecord.Forms.FormViewEntities
|
||||||
@ -74,7 +65,8 @@ namespace StudentProgressRecord.Forms.FormViewEntities
|
|||||||
|
|
||||||
private void buttonDelete_Click(object sender, EventArgs e)
|
private void buttonDelete_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if(!TryGetIdFromSelectesRow(out var findId)){
|
if (!TryGetIdFromSelectesRow(out var findId))
|
||||||
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (MessageBox.Show("Удалить запись?", "Удаление",
|
if (MessageBox.Show("Удалить запись?", "Удаление",
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Repositories;
|
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
|
namespace StudentProgressRecord.Forms
|
||||||
{
|
{
|
||||||
@ -34,9 +25,9 @@ namespace StudentProgressRecord.Forms
|
|||||||
comboBoxSubject.ValueMember = "Id";
|
comboBoxSubject.ValueMember = "Id";
|
||||||
|
|
||||||
|
|
||||||
var list = new List<int>() {1,2,3,4,5};
|
var list = new List<int>() { 1, 2, 3, 4, 5 };
|
||||||
columnMark.DataSource = list;
|
columnMark.DataSource = list;
|
||||||
|
|
||||||
|
|
||||||
columnStudent.DataSource = studentRepository.ReadStudents();
|
columnStudent.DataSource = studentRepository.ReadStudents();
|
||||||
columnStudent.DisplayMember = "Name";
|
columnStudent.DisplayMember = "Name";
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Repositories;
|
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
|
namespace StudentProgressRecord.Forms
|
||||||
{
|
{
|
||||||
|
@ -1,18 +1,7 @@
|
|||||||
using Microsoft.VisualBasic.FileIO;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Entity;
|
|
||||||
using StudentProgressRecord.Entity.Enums;
|
using StudentProgressRecord.Entity.Enums;
|
||||||
using StudentProgressRecord.IRepositories;
|
using StudentProgressRecord.IRepositories;
|
||||||
using StudentProgressRecord.Repositories;
|
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
|
namespace StudentProgressRecord.Forms
|
||||||
{
|
{
|
||||||
@ -51,7 +40,7 @@ namespace StudentProgressRecord.Forms
|
|||||||
Console.Write(comboBoxOperations.SelectedItem);
|
Console.Write(comboBoxOperations.SelectedItem);
|
||||||
_studentTransitionRepository.CreateStudentTransition(
|
_studentTransitionRepository.CreateStudentTransition(
|
||||||
StudentTransition.CreateOperation(
|
StudentTransition.CreateOperation(
|
||||||
0L,
|
0L,
|
||||||
(long)comboBoxStudent.SelectedValue!,
|
(long)comboBoxStudent.SelectedValue!,
|
||||||
(Operations)comboBoxOperations.SelectedItem!,
|
(Operations)comboBoxOperations.SelectedItem!,
|
||||||
dateTimePicker.Value)
|
dateTimePicker.Value)
|
||||||
|
@ -1,16 +1,6 @@
|
|||||||
using Microsoft.VisualBasic.FileIO;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Entity;
|
|
||||||
using StudentProgressRecord.Entity.Enums;
|
using StudentProgressRecord.Entity.Enums;
|
||||||
using StudentProgressRecord.Repositories;
|
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
|
namespace StudentProgressRecord
|
||||||
{
|
{
|
||||||
|
@ -1,15 +1,5 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Repositories;
|
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
|
namespace StudentProgressRecord.Forms
|
||||||
{
|
{
|
||||||
|
@ -1,13 +1,4 @@
|
|||||||
using StudentProgressRecord.Forms.FormViewEntities;
|
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;
|
using Unity;
|
||||||
|
|
||||||
namespace StudentProgressRecord
|
namespace StudentProgressRecord
|
||||||
@ -87,6 +78,6 @@ namespace StudentProgressRecord
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,7 +4,7 @@ namespace StudentProgressRecord.Repositories
|
|||||||
{
|
{
|
||||||
public interface IStatementRepository
|
public interface IStatementRepository
|
||||||
{
|
{
|
||||||
IEnumerable<Statement> ReadStatements(long? subjectId = null, long? teacherId = null, DateTime? dateFrom = null, DateTime? dateTo=null);
|
IEnumerable<Statement> ReadStatements(long? subjectId = null, long? teacherId = null, DateTime? dateFrom = null, DateTime? dateTo = null);
|
||||||
|
|
||||||
void CreateStatement(Statement statement);
|
void CreateStatement(Statement statement);
|
||||||
void DeleteStatement(long id);
|
void DeleteStatement(long id);
|
||||||
|
@ -1,15 +1,10 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Repositories
|
namespace StudentProgressRecord.Repositories
|
||||||
{
|
{
|
||||||
public interface IStudentRepository
|
public interface IStudentRepository
|
||||||
{
|
{
|
||||||
IEnumerable<Student> ReadStudents(bool? familyPos=null, bool? domitory=null);
|
IEnumerable<Student> ReadStudents(bool? familyPos = null, bool? domitory = null);
|
||||||
Student ReadStudentById(long id);
|
Student ReadStudentById(long id);
|
||||||
void CreateStudent(Student student);
|
void CreateStudent(Student student);
|
||||||
void UpdateStudent(Student student);
|
void UpdateStudent(Student student);
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.IRepositories
|
namespace StudentProgressRecord.IRepositories
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Repositories
|
namespace StudentProgressRecord.Repositories
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,4 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.Repositories
|
namespace StudentProgressRecord.Repositories
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using StudentProgressRecord.Forms;
|
|
||||||
using StudentProgressRecord.IRepositories;
|
using StudentProgressRecord.IRepositories;
|
||||||
using StudentProgressRecord.Repositories;
|
using StudentProgressRecord.Repositories;
|
||||||
using StudentProgressRecord.RepositoryImp;
|
using StudentProgressRecord.RepositoryImp;
|
||||||
@ -32,7 +31,7 @@ namespace StudentProgressRecord
|
|||||||
|
|
||||||
container.RegisterType<ISubjectRepository, SubjectRepository>
|
container.RegisterType<ISubjectRepository, SubjectRepository>
|
||||||
(new TransientLifetimeManager());
|
(new TransientLifetimeManager());
|
||||||
|
|
||||||
container.RegisterType<ITeacherRepository, TeacherRepository>
|
container.RegisterType<ITeacherRepository, TeacherRepository>
|
||||||
(new TransientLifetimeManager());
|
(new TransientLifetimeManager());
|
||||||
|
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Repositories;
|
using StudentProgressRecord.Repositories;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.RepositoryImp
|
namespace StudentProgressRecord.RepositoryImp
|
||||||
{
|
{
|
||||||
@ -12,15 +7,15 @@ namespace StudentProgressRecord.RepositoryImp
|
|||||||
{
|
{
|
||||||
public void CreateStatement(Statement statement)
|
public void CreateStatement(Statement statement)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteStatement(long id)
|
public void DeleteStatement(long id)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Statement> ReadStatements(long? subjectId = null, long? teacherId = null,
|
public IEnumerable<Statement> ReadStatements(long? subjectId = null, long? teacherId = null,
|
||||||
DateTime? dateFrom = null, DateTime? dateTo = null)
|
DateTime? dateFrom = null, DateTime? dateTo = null)
|
||||||
{
|
{
|
||||||
return [];
|
return [];
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Repositories;
|
using StudentProgressRecord.Repositories;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.RepositoryImp
|
namespace StudentProgressRecord.RepositoryImp
|
||||||
{
|
{
|
||||||
@ -12,17 +7,17 @@ namespace StudentProgressRecord.RepositoryImp
|
|||||||
{
|
{
|
||||||
public void CreateStudent(Student student)
|
public void CreateStudent(Student student)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteStudent(long id)
|
public void DeleteStudent(long id)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Student ReadStudentById(long id)
|
public Student ReadStudentById(long id)
|
||||||
{
|
{
|
||||||
return Student.CreateEntity(0, string.Empty, false , false);
|
return Student.CreateEntity(0, string.Empty, false, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Student> ReadStudents(bool? familyPos = null, bool? domitory = null)
|
public IEnumerable<Student> ReadStudents(bool? familyPos = null, bool? domitory = null)
|
||||||
@ -32,7 +27,7 @@ namespace StudentProgressRecord.RepositoryImp
|
|||||||
|
|
||||||
public void UpdateStudent(Student student)
|
public void UpdateStudent(Student student)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,18 +1,18 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.IRepositories;
|
|
||||||
using StudentProgressRecord.Entity.Enums;
|
using StudentProgressRecord.Entity.Enums;
|
||||||
|
using StudentProgressRecord.IRepositories;
|
||||||
namespace StudentProgressRecord.RepositoryImp
|
namespace StudentProgressRecord.RepositoryImp
|
||||||
{
|
{
|
||||||
public class StudentTransitionRepository : IStudentTransitionRepository
|
public class StudentTransitionRepository : IStudentTransitionRepository
|
||||||
{
|
{
|
||||||
public void CreateStudentTransition(StudentTransition studentTransition)
|
public void CreateStudentTransition(StudentTransition studentTransition)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteStudentTransition(long id)
|
public void DeleteStudentTransition(long id)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public StudentTransition ReadStudentTransitionById(long id)
|
public StudentTransition ReadStudentTransitionById(long id)
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Entity.Enums;
|
using StudentProgressRecord.Entity.Enums;
|
||||||
using StudentProgressRecord.Repositories;
|
using StudentProgressRecord.Repositories;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.RepositoryImp
|
namespace StudentProgressRecord.RepositoryImp
|
||||||
{
|
{
|
||||||
@ -13,17 +8,17 @@ namespace StudentProgressRecord.RepositoryImp
|
|||||||
{
|
{
|
||||||
public void CreateSubject(Subject subject)
|
public void CreateSubject(Subject subject)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DeleteSubject(long id)
|
public void DeleteSubject(long id)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Subject ReadSubjectById(long id)
|
public Subject ReadSubjectById(long id)
|
||||||
{
|
{
|
||||||
return Subject.CreateEntity(0, string.Empty, Direction.None);
|
return Subject.CreateEntity(0, string.Empty, Direction.None);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Subject> ReadSubjects()
|
public IEnumerable<Subject> ReadSubjects()
|
||||||
|
@ -1,10 +1,5 @@
|
|||||||
using StudentProgressRecord.Entity;
|
using StudentProgressRecord.Entity;
|
||||||
using StudentProgressRecord.Repositories;
|
using StudentProgressRecord.Repositories;
|
||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace StudentProgressRecord.RepositoryImp
|
namespace StudentProgressRecord.RepositoryImp
|
||||||
{
|
{
|
||||||
@ -17,7 +12,7 @@ namespace StudentProgressRecord.RepositoryImp
|
|||||||
|
|
||||||
public void DeleteTeacher(long id)
|
public void DeleteTeacher(long id)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Teacher ReadTeacherById(long id)
|
public Teacher ReadTeacherById(long id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user