Лабораторная работа 2

This commit is contained in:
Сафия Мухамадиева 2024-12-19 04:34:24 +04:00
parent fdb6376672
commit eb83644996
13 changed files with 158 additions and 853 deletions

View File

@ -28,7 +28,6 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
label1 = new Label();
label2 = new Label(); label2 = new Label();
label3 = new Label(); label3 = new Label();
label4 = new Label(); label4 = new Label();
@ -37,56 +36,51 @@
dateTimePicker1 = new DateTimePicker(); dateTimePicker1 = new DateTimePicker();
comboBoxSubject = new ComboBox(); comboBoxSubject = new ComboBox();
comboBoxProfessor = new ComboBox(); comboBoxProfessor = new ComboBox();
checkedListBoxType = new CheckedListBox();
groupBox1 = new GroupBox(); groupBox1 = new GroupBox();
groupBox2 = new GroupBox(); groupBox2 = new GroupBox();
dataGridView1 = new DataGridView(); dataGridView1 = new DataGridView();
ColumnStudent = new DataGridViewComboBoxColumn(); ColumnStudent = new DataGridViewComboBoxColumn();
ColumnMark = new DataGridViewTextBoxColumn();
groupBox2.SuspendLayout(); groupBox2.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// label1
//
label1.AutoSize = true;
label1.Location = new Point(62, 49);
label1.Name = "label1";
label1.Size = new Size(94, 32);
label1.TabIndex = 0;
label1.Text = "Работа:";
//
// label2 // label2
// //
label2.AutoSize = true; label2.AutoSize = true;
label2.Location = new Point(62, 272); label2.Location = new Point(33, 42);
label2.Margin = new Padding(2, 0, 2, 0);
label2.Name = "label2"; label2.Name = "label2";
label2.Size = new Size(116, 32); label2.Size = new Size(58, 15);
label2.TabIndex = 1; label2.TabIndex = 1;
label2.Text = "Предмет:"; label2.Text = "Предмет:";
// //
// label3 // label3
// //
label3.AutoSize = true; label3.AutoSize = true;
label3.Location = new Point(62, 370); label3.Location = new Point(33, 90);
label3.Margin = new Padding(2, 0, 2, 0);
label3.Name = "label3"; label3.Name = "label3";
label3.Size = new Size(191, 32); label3.Size = new Size(95, 15);
label3.TabIndex = 2; label3.TabIndex = 2;
label3.Text = "Преподователь:"; label3.Text = "Преподователь:";
// //
// label4 // label4
// //
label4.AutoSize = true; label4.AutoSize = true;
label4.Location = new Point(62, 481); label4.Location = new Point(33, 140);
label4.Margin = new Padding(2, 0, 2, 0);
label4.Name = "label4"; label4.Name = "label4";
label4.Size = new Size(70, 32); label4.Size = new Size(35, 15);
label4.TabIndex = 3; label4.TabIndex = 3;
label4.Text = "Дата:"; label4.Text = "Дата:";
// //
// buttonSave // buttonSave
// //
buttonSave.Location = new Point(62, 625); buttonSave.Location = new Point(33, 188);
buttonSave.Margin = new Padding(2, 1, 2, 1);
buttonSave.Name = "buttonSave"; buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(150, 46); buttonSave.Size = new Size(81, 22);
buttonSave.TabIndex = 4; buttonSave.TabIndex = 4;
buttonSave.Text = "Сохранить"; buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true; buttonSave.UseVisualStyleBackColor = true;
@ -94,9 +88,10 @@
// //
// buttonCancel // buttonCancel
// //
buttonCancel.Location = new Point(357, 625); buttonCancel.Location = new Point(192, 188);
buttonCancel.Margin = new Padding(2, 1, 2, 1);
buttonCancel.Name = "buttonCancel"; buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(150, 46); buttonCancel.Size = new Size(81, 22);
buttonCancel.TabIndex = 5; buttonCancel.TabIndex = 5;
buttonCancel.Text = "Отмена"; buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true; buttonCancel.UseVisualStyleBackColor = true;
@ -104,40 +99,37 @@
// //
// dateTimePicker1 // dateTimePicker1
// //
dateTimePicker1.Location = new Point(178, 481); dateTimePicker1.Location = new Point(81, 134);
dateTimePicker1.Margin = new Padding(2, 1, 2, 1);
dateTimePicker1.Name = "dateTimePicker1"; dateTimePicker1.Name = "dateTimePicker1";
dateTimePicker1.Size = new Size(400, 39); dateTimePicker1.Size = new Size(192, 23);
dateTimePicker1.TabIndex = 6; dateTimePicker1.TabIndex = 6;
// //
// comboBoxSubject // comboBoxSubject
// //
comboBoxSubject.FormattingEnabled = true; comboBoxSubject.FormattingEnabled = true;
comboBoxSubject.Location = new Point(267, 272); comboBoxSubject.Location = new Point(141, 42);
comboBoxSubject.Margin = new Padding(2, 1, 2, 1);
comboBoxSubject.Name = "comboBoxSubject"; comboBoxSubject.Name = "comboBoxSubject";
comboBoxSubject.Size = new Size(242, 40); comboBoxSubject.Size = new Size(132, 23);
comboBoxSubject.TabIndex = 8; comboBoxSubject.TabIndex = 8;
// //
// comboBoxProfessor // comboBoxProfessor
// //
comboBoxProfessor.FormattingEnabled = true; comboBoxProfessor.FormattingEnabled = true;
comboBoxProfessor.Location = new Point(267, 370); comboBoxProfessor.Location = new Point(141, 87);
comboBoxProfessor.Margin = new Padding(2, 1, 2, 1);
comboBoxProfessor.Name = "comboBoxProfessor"; comboBoxProfessor.Name = "comboBoxProfessor";
comboBoxProfessor.Size = new Size(242, 40); comboBoxProfessor.Size = new Size(132, 23);
comboBoxProfessor.TabIndex = 9; comboBoxProfessor.TabIndex = 9;
// //
// checkedListBoxType
//
checkedListBoxType.FormattingEnabled = true;
checkedListBoxType.Location = new Point(267, 49);
checkedListBoxType.Name = "checkedListBoxType";
checkedListBoxType.Size = new Size(240, 184);
checkedListBoxType.TabIndex = 10;
//
// groupBox1 // groupBox1
// //
groupBox1.Location = new Point(680, 158); groupBox1.Location = new Point(366, 74);
groupBox1.Margin = new Padding(2, 1, 2, 1);
groupBox1.Name = "groupBox1"; groupBox1.Name = "groupBox1";
groupBox1.Size = new Size(400, 200); groupBox1.Padding = new Padding(2, 1, 2, 1);
groupBox1.Size = new Size(215, 94);
groupBox1.TabIndex = 11; groupBox1.TabIndex = 11;
groupBox1.TabStop = false; groupBox1.TabStop = false;
groupBox1.Text = "groupBox1"; groupBox1.Text = "groupBox1";
@ -145,11 +137,9 @@
// groupBox2 // groupBox2
// //
groupBox2.Controls.Add(dataGridView1); groupBox2.Controls.Add(dataGridView1);
groupBox2.Location = new Point(627, 49); groupBox2.Location = new Point(338, 23);
groupBox2.Margin = new Padding(6);
groupBox2.Name = "groupBox2"; groupBox2.Name = "groupBox2";
groupBox2.Padding = new Padding(6); groupBox2.Size = new Size(279, 221);
groupBox2.Size = new Size(519, 622);
groupBox2.TabIndex = 12; groupBox2.TabIndex = 12;
groupBox2.TabStop = false; groupBox2.TabStop = false;
groupBox2.Text = "Оценка"; groupBox2.Text = "Оценка";
@ -158,13 +148,13 @@
// //
dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView1.Columns.AddRange(new DataGridViewColumn[] { ColumnStudent }); dataGridView1.Columns.AddRange(new DataGridViewColumn[] { ColumnStudent, ColumnMark });
dataGridView1.Dock = DockStyle.Fill; dataGridView1.Dock = DockStyle.Fill;
dataGridView1.Location = new Point(6, 38); dataGridView1.Location = new Point(3, 19);
dataGridView1.Margin = new Padding(6);
dataGridView1.Name = "dataGridView1"; dataGridView1.Name = "dataGridView1";
dataGridView1.RowHeadersVisible = false;
dataGridView1.RowHeadersWidth = 82; dataGridView1.RowHeadersWidth = 82;
dataGridView1.Size = new Size(507, 578); dataGridView1.Size = new Size(273, 199);
dataGridView1.TabIndex = 0; dataGridView1.TabIndex = 0;
// //
// ColumnStudent // ColumnStudent
@ -173,14 +163,20 @@
ColumnStudent.MinimumWidth = 10; ColumnStudent.MinimumWidth = 10;
ColumnStudent.Name = "ColumnStudent"; ColumnStudent.Name = "ColumnStudent";
// //
// ColumnMark
//
ColumnMark.HeaderText = "Оценка";
ColumnMark.Name = "ColumnMark";
ColumnMark.Resizable = DataGridViewTriState.True;
ColumnMark.SortMode = DataGridViewColumnSortMode.NotSortable;
//
// FormGrade // FormGrade
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1161, 779); ClientSize = new Size(625, 273);
Controls.Add(groupBox2); Controls.Add(groupBox2);
Controls.Add(groupBox1); Controls.Add(groupBox1);
Controls.Add(checkedListBoxType);
Controls.Add(comboBoxProfessor); Controls.Add(comboBoxProfessor);
Controls.Add(comboBoxSubject); Controls.Add(comboBoxSubject);
Controls.Add(dateTimePicker1); Controls.Add(dateTimePicker1);
@ -189,10 +185,9 @@
Controls.Add(label4); Controls.Add(label4);
Controls.Add(label3); Controls.Add(label3);
Controls.Add(label2); Controls.Add(label2);
Controls.Add(label1); Margin = new Padding(2, 1, 2, 1);
Name = "FormGrade"; Name = "FormGrade";
Text = "Оценка"; Text = "Оценка";
Load += FormGrade_Load;
groupBox2.ResumeLayout(false); groupBox2.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
ResumeLayout(false); ResumeLayout(false);
@ -200,8 +195,6 @@
} }
#endregion #endregion
private Label label1;
private Label label2; private Label label2;
private Label label3; private Label label3;
private Label label4; private Label label4;
@ -210,10 +203,10 @@
private DateTimePicker dateTimePicker1; private DateTimePicker dateTimePicker1;
private ComboBox comboBoxSubject; private ComboBox comboBoxSubject;
private ComboBox comboBoxProfessor; private ComboBox comboBoxProfessor;
private CheckedListBox checkedListBoxType;
private GroupBox groupBox1; private GroupBox groupBox1;
private GroupBox groupBox2; private GroupBox groupBox2;
private DataGridView dataGridView1; private DataGridView dataGridView1;
private DataGridViewComboBoxColumn ColumnStudent; private DataGridViewComboBoxColumn ColumnStudent;
private DataGridViewTextBoxColumn ColumnMark;
} }
} }

View File

@ -82,6 +82,7 @@
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.ReadOnly = true; dataGridView.ReadOnly = true;
dataGridView.RowHeadersVisible = false; dataGridView.RowHeadersVisible = false;
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(548, 271); dataGridView.Size = new Size(548, 271);
dataGridView.TabIndex = 1; dataGridView.TabIndex = 1;
// //

View File

@ -78,14 +78,14 @@ namespace StudentProgress.Forms
buttonCancel.Text = "Отмена"; buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true; buttonCancel.UseVisualStyleBackColor = true;
buttonCancel.Click += buttonCancel_Click; buttonCancel.Click += buttonCancel_Click;
// //
// FormGroup // FormGroup
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(13F, 32F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(644, 461); ClientSize = new Size(644, 461);
Controls.Add(buttonCancel); Controls.Add(buttonCancel);
Controls.Add(buttonSave); Controls.Add(buttonSave);
Controls.Add(textBoxNameGroup); Controls.Add(textBoxNameGroup);

View File

@ -41,22 +41,27 @@ namespace StudentProgress.Forms
// //
// dataGridView // dataGridView
// //
dataGridView.AllowUserToResizeColumns = false;
dataGridView.AllowUserToResizeRows = false;
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(26, 30); dataGridView.Location = new Point(14, 14);
dataGridView.Margin = new Padding(6, 7, 6, 7); dataGridView.MultiSelect = false;
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.ReadOnly = true;
dataGridView.RowHeadersVisible = false;
dataGridView.RowHeadersWidth = 82; dataGridView.RowHeadersWidth = 82;
dataGridView.Size = new Size(635, 569); dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(342, 267);
dataGridView.TabIndex = 0; dataGridView.TabIndex = 0;
// //
// buttonAdd // buttonAdd
// //
buttonAdd.BackgroundImage = Properties.Resources.Add; buttonAdd.BackgroundImage = Properties.Resources.Add;
buttonAdd.BackgroundImageLayout = ImageLayout.Stretch; buttonAdd.BackgroundImageLayout = ImageLayout.Stretch;
buttonAdd.Location = new Point(28, 37); buttonAdd.Location = new Point(15, 17);
buttonAdd.Margin = new Padding(6, 7, 6, 7);
buttonAdd.Name = "buttonAdd"; buttonAdd.Name = "buttonAdd";
buttonAdd.Size = new Size(162, 115); buttonAdd.Size = new Size(87, 54);
buttonAdd.TabIndex = 1; buttonAdd.TabIndex = 1;
buttonAdd.UseVisualStyleBackColor = true; buttonAdd.UseVisualStyleBackColor = true;
buttonAdd.Click += buttonAdd_Click; buttonAdd.Click += buttonAdd_Click;
@ -65,10 +70,9 @@ namespace StudentProgress.Forms
// //
buttonPencil.BackgroundImage = Properties.Resources.Pencil; buttonPencil.BackgroundImage = Properties.Resources.Pencil;
buttonPencil.BackgroundImageLayout = ImageLayout.Stretch; buttonPencil.BackgroundImageLayout = ImageLayout.Stretch;
buttonPencil.Location = new Point(28, 224); buttonPencil.Location = new Point(15, 105);
buttonPencil.Margin = new Padding(6, 7, 6, 7);
buttonPencil.Name = "buttonPencil"; buttonPencil.Name = "buttonPencil";
buttonPencil.Size = new Size(162, 127); buttonPencil.Size = new Size(87, 60);
buttonPencil.TabIndex = 2; buttonPencil.TabIndex = 2;
buttonPencil.UseVisualStyleBackColor = true; buttonPencil.UseVisualStyleBackColor = true;
buttonPencil.Click += buttonPencil_Click; buttonPencil.Click += buttonPencil_Click;
@ -77,10 +81,9 @@ namespace StudentProgress.Forms
// //
buttonDel.BackgroundImage = Properties.Resources.Del; buttonDel.BackgroundImage = Properties.Resources.Del;
buttonDel.BackgroundImageLayout = ImageLayout.Stretch; buttonDel.BackgroundImageLayout = ImageLayout.Stretch;
buttonDel.Location = new Point(28, 390); buttonDel.Location = new Point(15, 183);
buttonDel.Margin = new Padding(6, 7, 6, 7);
buttonDel.Name = "buttonDel"; buttonDel.Name = "buttonDel";
buttonDel.Size = new Size(162, 127); buttonDel.Size = new Size(87, 60);
buttonDel.TabIndex = 3; buttonDel.TabIndex = 3;
buttonDel.UseVisualStyleBackColor = true; buttonDel.UseVisualStyleBackColor = true;
buttonDel.Click += buttonDel_Click; buttonDel.Click += buttonDel_Click;
@ -90,19 +93,19 @@ namespace StudentProgress.Forms
panel1.Controls.Add(buttonAdd); panel1.Controls.Add(buttonAdd);
panel1.Controls.Add(buttonDel); panel1.Controls.Add(buttonDel);
panel1.Controls.Add(buttonPencil); panel1.Controls.Add(buttonPencil);
panel1.Location = new Point(693, 30); panel1.Location = new Point(373, 14);
panel1.Margin = new Padding(2, 1, 2, 1);
panel1.Name = "panel1"; panel1.Name = "panel1";
panel1.Size = new Size(214, 569); panel1.Size = new Size(115, 267);
panel1.TabIndex = 4; panel1.TabIndex = 4;
// //
// FormGroups // FormGroups
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(919, 628); ClientSize = new Size(495, 294);
Controls.Add(panel1); Controls.Add(panel1);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Margin = new Padding(6, 7, 6, 7);
Name = "FormGroups"; Name = "FormGroups";
Text = "Группы"; Text = "Группы";
Load += FormGroups_Load; Load += FormGroups_Load;

View File

@ -38,23 +38,27 @@
// //
// LecturesDataGridView // LecturesDataGridView
// //
LecturesDataGridView.AllowUserToResizeColumns = false;
LecturesDataGridView.AllowUserToResizeRows = false;
LecturesDataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
LecturesDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; LecturesDataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
LecturesDataGridView.Location = new Point(15, 16); LecturesDataGridView.Location = new Point(8, 8);
LecturesDataGridView.Margin = new Padding(6, 7, 6, 7); LecturesDataGridView.MultiSelect = false;
LecturesDataGridView.Name = "LecturesDataGridView"; LecturesDataGridView.Name = "LecturesDataGridView";
LecturesDataGridView.RowHeadersVisible = false;
LecturesDataGridView.RowHeadersWidth = 82; LecturesDataGridView.RowHeadersWidth = 82;
LecturesDataGridView.Size = new Size(841, 459); LecturesDataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
LecturesDataGridView.Size = new Size(453, 215);
LecturesDataGridView.TabIndex = 0; LecturesDataGridView.TabIndex = 0;
LecturesDataGridView.CellContentClick += LecturesDataGridView_CellContentClick;
// //
// buttonAdd // buttonAdd
// //
buttonAdd.BackgroundImage = Properties.Resources.Add; buttonAdd.BackgroundImage = Properties.Resources.Add;
buttonAdd.BackgroundImageLayout = ImageLayout.Stretch; buttonAdd.BackgroundImageLayout = ImageLayout.Stretch;
buttonAdd.Location = new Point(28, 36); buttonAdd.Location = new Point(15, 17);
buttonAdd.Margin = new Padding(13, 17, 13, 17); buttonAdd.Margin = new Padding(7, 8, 7, 8);
buttonAdd.Name = "buttonAdd"; buttonAdd.Name = "buttonAdd";
buttonAdd.Size = new Size(155, 128); buttonAdd.Size = new Size(83, 60);
buttonAdd.TabIndex = 1; buttonAdd.TabIndex = 1;
buttonAdd.UseVisualStyleBackColor = true; buttonAdd.UseVisualStyleBackColor = true;
buttonAdd.Click += buttonAdd_Click; buttonAdd.Click += buttonAdd_Click;
@ -63,10 +67,10 @@
// //
buttonDel.BackgroundImage = Properties.Resources.Del; buttonDel.BackgroundImage = Properties.Resources.Del;
buttonDel.BackgroundImageLayout = ImageLayout.Stretch; buttonDel.BackgroundImageLayout = ImageLayout.Stretch;
buttonDel.Location = new Point(25, 281); buttonDel.Location = new Point(13, 132);
buttonDel.Margin = new Padding(13, 17, 13, 17); buttonDel.Margin = new Padding(7, 8, 7, 8);
buttonDel.Name = "buttonDel"; buttonDel.Name = "buttonDel";
buttonDel.Size = new Size(158, 138); buttonDel.Size = new Size(85, 65);
buttonDel.TabIndex = 2; buttonDel.TabIndex = 2;
buttonDel.UseVisualStyleBackColor = true; buttonDel.UseVisualStyleBackColor = true;
buttonDel.Click += buttonDel_Click; buttonDel.Click += buttonDel_Click;
@ -75,19 +79,19 @@
// //
panel1.Controls.Add(buttonAdd); panel1.Controls.Add(buttonAdd);
panel1.Controls.Add(buttonDel); panel1.Controls.Add(buttonDel);
panel1.Location = new Point(885, 16); panel1.Location = new Point(477, 8);
panel1.Margin = new Padding(2, 1, 2, 1);
panel1.Name = "panel1"; panel1.Name = "panel1";
panel1.Size = new Size(216, 452); panel1.Size = new Size(116, 212);
panel1.TabIndex = 3; panel1.TabIndex = 3;
// //
// FormLecturesCount // FormLecturesCount
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1112, 493); ClientSize = new Size(599, 231);
Controls.Add(panel1); Controls.Add(panel1);
Controls.Add(LecturesDataGridView); Controls.Add(LecturesDataGridView);
Margin = new Padding(6, 7, 6, 7);
Name = "FormLecturesCount"; Name = "FormLecturesCount";
Text = "Учет лекций"; Text = "Учет лекций";
Load += FormLecturesCount_Load; Load += FormLecturesCount_Load;

View File

@ -40,26 +40,23 @@ namespace StudentProgress.Forms
// //
// textBoxFirstName // textBoxFirstName
// //
textBoxFirstName.Location = new Point(235, 28); textBoxFirstName.Location = new Point(127, 13);
textBoxFirstName.Margin = new Padding(6, 7, 6, 7);
textBoxFirstName.Name = "textBoxFirstName"; textBoxFirstName.Name = "textBoxFirstName";
textBoxFirstName.Size = new Size(252, 39); textBoxFirstName.Size = new Size(167, 23);
textBoxFirstName.TabIndex = 0; textBoxFirstName.TabIndex = 0;
// //
// textBoxSurname // textBoxSurname
// //
textBoxSurname.Location = new Point(235, 105); textBoxSurname.Location = new Point(127, 49);
textBoxSurname.Margin = new Padding(6, 7, 6, 7);
textBoxSurname.Name = "textBoxSurname"; textBoxSurname.Name = "textBoxSurname";
textBoxSurname.Size = new Size(306, 39); textBoxSurname.Size = new Size(167, 23);
textBoxSurname.TabIndex = 1; textBoxSurname.TabIndex = 1;
// //
// buttonSave // buttonSave
// //
buttonSave.Location = new Point(53, 233); buttonSave.Location = new Point(29, 109);
buttonSave.Margin = new Padding(6, 7, 6, 7);
buttonSave.Name = "buttonSave"; buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(162, 57); buttonSave.Size = new Size(87, 27);
buttonSave.TabIndex = 2; buttonSave.TabIndex = 2;
buttonSave.Text = "Сохранить"; buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true; buttonSave.UseVisualStyleBackColor = true;
@ -67,10 +64,9 @@ namespace StudentProgress.Forms
// //
// buttonCancel // buttonCancel
// //
buttonCancel.Location = new Point(286, 233); buttonCancel.Location = new Point(154, 109);
buttonCancel.Margin = new Padding(6, 7, 6, 7);
buttonCancel.Name = "buttonCancel"; buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(162, 57); buttonCancel.Size = new Size(87, 27);
buttonCancel.TabIndex = 3; buttonCancel.TabIndex = 3;
buttonCancel.Text = "Отмена"; buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true; buttonCancel.UseVisualStyleBackColor = true;
@ -79,33 +75,34 @@ namespace StudentProgress.Forms
// label1 // label1
// //
label1.AutoSize = true; label1.AutoSize = true;
label1.Location = new Point(53, 31); label1.Location = new Point(29, 15);
label1.Margin = new Padding(2, 0, 2, 0);
label1.Name = "label1"; label1.Name = "label1";
label1.Size = new Size(66, 32); label1.Size = new Size(34, 15);
label1.TabIndex = 4; label1.TabIndex = 4;
label1.Text = "Имя:"; label1.Text = "Имя:";
// //
// label2 // label2
// //
label2.AutoSize = true; label2.AutoSize = true;
label2.Location = new Point(53, 105); label2.Location = new Point(29, 49);
label2.Margin = new Padding(2, 0, 2, 0);
label2.Name = "label2"; label2.Name = "label2";
label2.Size = new Size(113, 32); label2.Size = new Size(58, 15);
label2.TabIndex = 5; label2.TabIndex = 5;
label2.Text = "Фамилия"; label2.Text = "Фамилия";
// //
// FormProfessor // FormProfessor
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(695, 354); ClientSize = new Size(374, 166);
Controls.Add(label2); Controls.Add(label2);
Controls.Add(label1); Controls.Add(label1);
Controls.Add(buttonCancel); Controls.Add(buttonCancel);
Controls.Add(buttonSave); Controls.Add(buttonSave);
Controls.Add(textBoxSurname); Controls.Add(textBoxSurname);
Controls.Add(textBoxFirstName); Controls.Add(textBoxFirstName);
Margin = new Padding(6, 7, 6, 7);
Name = "FormProfessor"; Name = "FormProfessor";
Text = "Преподаватель"; Text = "Преподаватель";
ResumeLayout(false); ResumeLayout(false);

View File

@ -39,60 +39,61 @@ namespace StudentProgress.Forms
// //
// dataGridView // dataGridView
// //
dataGridView.AllowUserToResizeColumns = false;
dataGridView.AllowUserToResizeRows = false;
dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(26, 30); dataGridView.Location = new Point(14, 14);
dataGridView.Margin = new Padding(6, 7, 6, 7); dataGridView.MultiSelect = false;
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.RowHeadersVisible = false;
dataGridView.RowHeadersWidth = 82; dataGridView.RowHeadersWidth = 82;
dataGridView.Size = new Size(867, 492); dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(467, 231);
dataGridView.TabIndex = 0; dataGridView.TabIndex = 0;
// //
// buttonAdd // buttonAdd
// //
buttonAdd.BackgroundImage = StudentProgress.Properties.Resources.Add; buttonAdd.BackgroundImage = Properties.Resources.Add;
buttonAdd.BackgroundImageLayout = ImageLayout.Stretch; buttonAdd.BackgroundImageLayout = ImageLayout.Stretch;
buttonAdd.Location = new Point(935, 30); buttonAdd.Location = new Point(503, 14);
buttonAdd.Margin = new Padding(6, 7, 6, 7);
buttonAdd.Name = "buttonAdd"; buttonAdd.Name = "buttonAdd";
buttonAdd.Size = new Size(162, 118); buttonAdd.Size = new Size(87, 55);
buttonAdd.TabIndex = 1; buttonAdd.TabIndex = 1;
buttonAdd.UseVisualStyleBackColor = true; buttonAdd.UseVisualStyleBackColor = true;
buttonAdd.Click += buttonAdd_Click; buttonAdd.Click += buttonAdd_Click;
// //
// buttonPencil // buttonPencil
// //
buttonPencil.BackgroundImage = StudentProgress.Properties.Resources.Pencil; buttonPencil.BackgroundImage = Properties.Resources.Pencil;
buttonPencil.BackgroundImageLayout = ImageLayout.Stretch; buttonPencil.BackgroundImageLayout = ImageLayout.Stretch;
buttonPencil.Location = new Point(935, 224); buttonPencil.Location = new Point(503, 105);
buttonPencil.Margin = new Padding(6, 7, 6, 7);
buttonPencil.Name = "buttonPencil"; buttonPencil.Name = "buttonPencil";
buttonPencil.Size = new Size(162, 118); buttonPencil.Size = new Size(87, 55);
buttonPencil.TabIndex = 2; buttonPencil.TabIndex = 2;
buttonPencil.UseVisualStyleBackColor = true; buttonPencil.UseVisualStyleBackColor = true;
buttonPencil.Click += buttonPencil_Click; buttonPencil.Click += buttonPencil_Click;
// //
// buttonDel // buttonDel
// //
buttonDel.BackgroundImage = StudentProgress.Properties.Resources.Del; buttonDel.BackgroundImage = Properties.Resources.Del;
buttonDel.BackgroundImageLayout = ImageLayout.Stretch; buttonDel.BackgroundImageLayout = ImageLayout.Stretch;
buttonDel.Location = new Point(935, 396); buttonDel.Location = new Point(503, 186);
buttonDel.Margin = new Padding(6, 7, 6, 7);
buttonDel.Name = "buttonDel"; buttonDel.Name = "buttonDel";
buttonDel.Size = new Size(162, 126); buttonDel.Size = new Size(87, 59);
buttonDel.TabIndex = 3; buttonDel.TabIndex = 3;
buttonDel.UseVisualStyleBackColor = true; buttonDel.UseVisualStyleBackColor = true;
buttonDel.Click += buttonDel_Click; buttonDel.Click += buttonDel_Click;
// //
// FormProfessors // FormProfessors
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1148, 628); ClientSize = new Size(618, 294);
Controls.Add(buttonDel); Controls.Add(buttonDel);
Controls.Add(buttonPencil); Controls.Add(buttonPencil);
Controls.Add(buttonAdd); Controls.Add(buttonAdd);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Margin = new Padding(6, 7, 6, 7);
Name = "FormProfessors"; Name = "FormProfessors";
Text = "Преподаватели"; Text = "Преподаватели";
Load += FormProfessors_Load; Load += FormProfessors_Load;

View File

@ -95,6 +95,7 @@
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.ReadOnly = true; dataGridView.ReadOnly = true;
dataGridView.RowHeadersVisible = false; dataGridView.RowHeadersVisible = false;
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(548, 271); dataGridView.Size = new Size(548, 271);
dataGridView.TabIndex = 1; dataGridView.TabIndex = 1;
// //

View File

@ -20,27 +20,23 @@ namespace StudentPerformance.Forms
buttonSave = new Button(); buttonSave = new Button();
buttonCancel = new Button(); buttonCancel = new Button();
labelName = new Label(); labelName = new Label();
groupBox = new GroupBox(); checkedListBoxCourses = new CheckedListBox();
dataGridView = new DataGridView(); groupBox1 = new GroupBox();
ColumnLast = new DataGridViewComboBoxColumn(); groupBox1.SuspendLayout();
groupBox.SuspendLayout();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// textBoxName // textBoxName
// //
textBoxName.Location = new Point(183, 47); textBoxName.Location = new Point(99, 22);
textBoxName.Margin = new Padding(6, 7, 6, 7);
textBoxName.Name = "textBoxName"; textBoxName.Name = "textBoxName";
textBoxName.Size = new Size(343, 39); textBoxName.Size = new Size(187, 23);
textBoxName.TabIndex = 0; textBoxName.TabIndex = 0;
// //
// buttonSave // buttonSave
// //
buttonSave.Location = new Point(32, 579); buttonSave.Location = new Point(17, 271);
buttonSave.Margin = new Padding(6, 7, 6, 7);
buttonSave.Name = "buttonSave"; buttonSave.Name = "buttonSave";
buttonSave.Size = new Size(162, 57); buttonSave.Size = new Size(87, 27);
buttonSave.TabIndex = 1; buttonSave.TabIndex = 1;
buttonSave.Text = "Сохранить"; buttonSave.Text = "Сохранить";
buttonSave.UseVisualStyleBackColor = true; buttonSave.UseVisualStyleBackColor = true;
@ -48,10 +44,9 @@ namespace StudentPerformance.Forms
// //
// buttonCancel // buttonCancel
// //
buttonCancel.Location = new Point(370, 597); buttonCancel.Location = new Point(199, 280);
buttonCancel.Margin = new Padding(6, 7, 6, 7);
buttonCancel.Name = "buttonCancel"; buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(162, 57); buttonCancel.Size = new Size(87, 27);
buttonCancel.TabIndex = 2; buttonCancel.TabIndex = 2;
buttonCancel.Text = "Отмена"; buttonCancel.Text = "Отмена";
buttonCancel.UseVisualStyleBackColor = true; buttonCancel.UseVisualStyleBackColor = true;
@ -60,67 +55,44 @@ namespace StudentPerformance.Forms
// labelName // labelName
// //
labelName.AutoSize = true; labelName.AutoSize = true;
labelName.Location = new Point(32, 47); labelName.Location = new Point(17, 22);
labelName.Margin = new Padding(6, 0, 6, 0);
labelName.Name = "labelName"; labelName.Name = "labelName";
labelName.Size = new Size(111, 32); labelName.Size = new Size(55, 15);
labelName.TabIndex = 3; labelName.TabIndex = 3;
labelName.Text = "Предмет"; labelName.Text = "Предмет";
// //
// groupBox // checkedListBoxCourses
// //
groupBox.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right; checkedListBoxCourses.Dock = DockStyle.Fill;
groupBox.Controls.Add(dataGridView); checkedListBoxCourses.FormattingEnabled = true;
groupBox.Location = new Point(32, 111); checkedListBoxCourses.Location = new Point(3, 19);
groupBox.Margin = new Padding(6); checkedListBoxCourses.Name = "checkedListBoxCourses";
groupBox.Name = "groupBox"; checkedListBoxCourses.Size = new Size(263, 179);
groupBox.Padding = new Padding(6); checkedListBoxCourses.TabIndex = 4;
groupBox.Size = new Size(494, 435);
groupBox.TabIndex = 3;
groupBox.TabStop = false;
groupBox.Text = "Преподаватели";
// //
// dataGridView // groupBox1
// //
dataGridView.AllowUserToDeleteRows = false; groupBox1.Controls.Add(checkedListBoxCourses);
dataGridView.AllowUserToResizeColumns = false; groupBox1.Location = new Point(17, 64);
dataGridView.AllowUserToResizeRows = false; groupBox1.Name = "groupBox1";
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; groupBox1.Size = new Size(269, 201);
dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnLast }); groupBox1.TabIndex = 5;
dataGridView.Dock = DockStyle.Fill; groupBox1.TabStop = false;
dataGridView.Location = new Point(6, 38); groupBox1.Text = "Курсы";
dataGridView.Margin = new Padding(6);
dataGridView.MultiSelect = false;
dataGridView.Name = "dataGridView";
dataGridView.RowHeadersVisible = false;
dataGridView.RowHeadersWidth = 82;
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(482, 391);
dataGridView.TabIndex = 0;
//
// ColumnLast
//
ColumnLast.HeaderText = "Фамилия преподавателя";
ColumnLast.MinimumWidth = 10;
ColumnLast.Name = "ColumnLast";
ColumnLast.Width = 200;
// //
// FormSubject // FormSubject
// //
AutoScaleDimensions = new SizeF(13F, 32F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(590, 719); ClientSize = new Size(318, 337);
Controls.Add(groupBox); Controls.Add(groupBox1);
Controls.Add(labelName); Controls.Add(labelName);
Controls.Add(buttonCancel); Controls.Add(buttonCancel);
Controls.Add(buttonSave); Controls.Add(buttonSave);
Controls.Add(textBoxName); Controls.Add(textBoxName);
Margin = new Padding(6, 7, 6, 7);
Name = "FormSubject"; Name = "FormSubject";
Text = "Предметы"; Text = "Предметы";
Load += FormSubject_Load; groupBox1.ResumeLayout(false);
groupBox.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout(); PerformLayout();
} }
@ -129,8 +101,7 @@ namespace StudentPerformance.Forms
private System.Windows.Forms.Button buttonSave; private System.Windows.Forms.Button buttonSave;
private System.Windows.Forms.Button buttonCancel; private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Label labelName; private System.Windows.Forms.Label labelName;
private GroupBox groupBox; private CheckedListBox checkedListBoxCourses;
private DataGridView dataGridView; private GroupBox groupBox1;
private DataGridViewComboBoxColumn ColumnLast;
} }
} }

View File

@ -3,14 +3,9 @@ using Microsoft.Extensions.Logging;
using Serilog; using Serilog;
using Unity; using Unity;
using Unity.Lifetime; using Unity.Lifetime;
using Serilog.Extensions.Logging;
using StudentProgress.Forms;
using StudentProgress.Repositories; using StudentProgress.Repositories;
using StudentProgress.Repositories.Implementations; using StudentProgress.Repositories.Implementations;
using Unity;
using Unity.Microsoft.Logging; using Unity.Microsoft.Logging;
using System;
using System.Windows.Forms;
using StudentPerformance.Repositories.Implementations; using StudentPerformance.Repositories.Implementations;
namespace StudentProgress namespace StudentProgress
@ -28,17 +23,14 @@ namespace StudentProgress
Application.Run(container.Resolve<FormStudentProgress>()); Application.Run(container.Resolve<FormStudentProgress>());
} }
public static UnityContainer CreateContainer() public static IUnityContainer CreateContainer()
{ {
var container = new UnityContainer(); var container = new UnityContainer();
// Ðåãèñòðàöèÿ ëîããåðà
container.AddExtension(new LoggingExtension(CreateLoggerFactory())); container.AddExtension(new LoggingExtension(CreateLoggerFactory()));
// Ðåãèñòðàöèÿ èíòåðôåéñà ñòðîêè ïîäêëþ÷åíèÿ
container.RegisterType<IConnectionString, ConnectionString>(new SingletonLifetimeManager()); container.RegisterType<IConnectionString, ConnectionString>(new SingletonLifetimeManager());
// Ðåãèñòðàöèÿ ðåïîçèòîðèåâ
container.RegisterType<IGradesRepository, GradesRepository>(new TransientLifetimeManager()); container.RegisterType<IGradesRepository, GradesRepository>(new TransientLifetimeManager());
container.RegisterType<IGroupRepository, GroupRepository>(new TransientLifetimeManager()); container.RegisterType<IGroupRepository, GroupRepository>(new TransientLifetimeManager());
container.RegisterType<ILecturesRepository, LecturesRepository>(new TransientLifetimeManager()); container.RegisterType<ILecturesRepository, LecturesRepository>(new TransientLifetimeManager());
@ -46,15 +38,6 @@ namespace StudentProgress
container.RegisterType<IStudentRepository, StudentRepository>(new TransientLifetimeManager()); container.RegisterType<IStudentRepository, StudentRepository>(new TransientLifetimeManager());
container.RegisterType<ISubjectsRepository, SubjectsRepository>(new TransientLifetimeManager()); container.RegisterType<ISubjectsRepository, SubjectsRepository>(new TransientLifetimeManager());
// Ðåãèñòðàöèÿ ôîðì
container.RegisterType<FormGroups>();
container.RegisterType<FormStudents>();
container.RegisterType<FormSubjects>();
container.RegisterType<FormGrades>();
container.RegisterType<FormProfessors>();
container.RegisterType<FormRecordLecture>();
container.RegisterType<FormLecturesCount>();
return container; return container;
} }

View File

@ -6,7 +6,7 @@
{ {
"Name": "File", "Name": "File",
"Args": { "Args": {
"path": "C:\\отп\\StudentProgress\\StudentProgress\\appsettings.json", "path": "Logs/log.txt",
"rollingInterval": "Day" "rollingInterval": "Day"
} }
} }

View File

@ -1,125 +0,0 @@
2024-12-04 18:12:04.577 +04:00 [INF] Получение групп
2024-12-04 18:12:05.492 +04:00 [ERR] Ошибка при чтении групп
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 64
2024-12-04 18:12:33.740 +04:00 [INF] Добавление группы
2024-12-04 18:12:34.889 +04:00 [DBG] Группа: {"Id":0,"NameGroup":"vhghg"}
2024-12-04 18:12:35.068 +04:00 [ERR] Ошибка при добавлении группы
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GroupRepository.CreateGroup(Group group) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 29
2024-12-04 18:12:41.544 +04:00 [INF] Получение групп
2024-12-04 18:12:41.590 +04:00 [ERR] Ошибка при чтении групп
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 64
2024-12-04 18:14:45.539 +04:00 [INF] Получение групп
2024-12-04 18:14:45.623 +04:00 [ERR] Ошибка при чтении групп
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 64
2024-12-04 18:27:30.144 +04:00 [INF] Получение групп
2024-12-04 18:27:30.580 +04:00 [ERR] Ошибка при чтении групп
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 64
2024-12-04 18:40:36.369 +04:00 [INF] Получение групп
2024-12-04 18:40:37.721 +04:00 [ERR] Ошибка при чтении групп
System.ArgumentException: Format of the initialization string does not conform to specification starting at index 0.
at System.Data.Common.DbConnectionOptions.GetKeyValuePair(String connectionString, Int32 currentPosition, StringBuilder buffer, Boolean useOdbcRules, String& keyname, String& keyvalue)
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 64
2024-12-04 19:09:36.613 +04:00 [INF] Получение всех объектов
2024-12-04 19:09:37.378 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 3D000: database "studentperformancebd" does not exist
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|214_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.Open()
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1183
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 65
Exception data:
Severity: FATAL
SqlState: 3D000
MessageText: database "studentperformancebd" does not exist
File: postinit.c
Line: 1050
Routine: InitPostgres
2024-12-04 19:48:23.173 +04:00 [INF] Получение всех объектов
2024-12-04 19:48:26.525 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 3D000: database "studentperformancebd" does not exist
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|214_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.Open()
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1183
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 65
Exception data:
Severity: FATAL
SqlState: 3D000
MessageText: database "studentperformancebd" does not exist
File: postinit.c
Line: 1050
Routine: InitPostgres

View File

@ -1,524 +0,0 @@
2024-12-05 03:52:19.883 +04:00 [INF] Получение всех объектов
2024-12-05 03:52:20.333 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 3D000: database "studentperformancebd" does not exist
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|214_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.Open()
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1183
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 65
Exception data:
Severity: FATAL
SqlState: 3D000
MessageText: database "studentperformancebd" does not exist
File: postinit.c
Line: 1050
Routine: InitPostgres
2024-12-05 03:52:31.028 +04:00 [INF] Получение оценок
2024-12-05 03:52:31.056 +04:00 [ERR] Ошибка при чтении оценок
System.ArgumentException: Keyword not supported: 'host'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GradesRepository.ReadGrades(Nullable`1 dateFrom, Nullable`1 dateTo, Nullable`1 subjectsId, Nullable`1 professorsId) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GradesRepository.cs:line 64
2024-12-05 03:52:40.306 +04:00 [INF] Получение оценок
2024-12-05 03:52:40.306 +04:00 [ERR] Ошибка при чтении оценок
System.ArgumentException: Keyword not supported: 'host'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GradesRepository.ReadGrades(Nullable`1 dateFrom, Nullable`1 dateTo, Nullable`1 subjectsId, Nullable`1 professorsId) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GradesRepository.cs:line 64
2024-12-05 03:52:50.012 +04:00 [INF] Получение преподавателей
2024-12-05 03:52:50.013 +04:00 [ERR] Ошибка при чтении преподавателей
System.ArgumentException: Keyword not supported: 'host'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.ProfessorsNameRepository.ReadProfessorsName() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\ProfessorsNameRepository.cs:line 64
2024-12-05 08:57:04.261 +04:00 [INF] Получение объектов
2024-12-05 08:57:05.030 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 3D000: database "studentperformancebd" does not exist
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|214_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.Open()
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1183
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentProgress.Repositories.Implementations.SubjectsRepository.ReadSubjects(Nullable`1 id) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\SubjectsRepository.cs:line 113
Exception data:
Severity: FATAL
SqlState: 3D000
MessageText: database "studentperformancebd" does not exist
File: postinit.c
Line: 1050
Routine: InitPostgres
2024-12-05 12:31:25.485 +04:00 [INF] Получение всех объектов
2024-12-05 12:31:26.556 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 3D000: database "studentperformancebd" does not exist
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|214_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.Open()
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1183
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 65
Exception data:
Severity: FATAL
SqlState: 3D000
MessageText: database "studentperformancebd" does not exist
File: postinit.c
Line: 1050
Routine: InitPostgres
2024-12-05 12:58:08.317 +04:00 [INF] Получение оценок
2024-12-05 12:58:08.808 +04:00 [ERR] Ошибка при чтении оценок
System.ArgumentException: Keyword not supported: 'host'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.GradesRepository.ReadGrades(Nullable`1 dateFrom, Nullable`1 dateTo, Nullable`1 subjectsId, Nullable`1 professorsId) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GradesRepository.cs:line 64
2024-12-05 12:58:26.316 +04:00 [INF] Получение лекций
2024-12-05 12:58:26.999 +04:00 [ERR] Ошибка при чтении лекций
System.ArgumentException: Keyword not supported: 'host'.
at System.Data.Common.DbConnectionOptions.ParseInternal(Dictionary`2 parsetable, String connectionString, Boolean buildChain, Dictionary`2 synonyms, Boolean firstKey)
at System.Data.Common.DbConnectionOptions..ctor(String connectionString, Dictionary`2 synonyms)
at System.Data.SqlClient.SqlConnectionString..ctor(String connectionString)
at System.Data.SqlClient.SqlConnectionFactory.CreateConnectionOptions(String connectionString, DbConnectionOptions previous)
at System.Data.ProviderBase.DbConnectionFactory.GetConnectionPoolGroup(DbConnectionPoolKey key, DbConnectionPoolGroupOptions poolOptions, DbConnectionOptions& userConnectionOptions)
at System.Data.SqlClient.SqlConnection.ConnectionString_Set(DbConnectionPoolKey key)
at System.Data.SqlClient.SqlConnection.set_ConnectionString(String value)
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at StudentProgress.Repositories.Implementations.LecturesRepository.ReadLectures() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\LecturesRepository.cs:line 28
2024-12-05 13:06:50.514 +04:00 [INF] Получение всех объектов
2024-12-05 13:06:51.428 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 3D000: database "StudentProgress" does not exist
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.Internal.NpgsqlConnector.<Open>g__OpenCore|214_1(NpgsqlConnector conn, SslMode sslMode, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.Internal.NpgsqlConnector.Open(NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.OpenNewConnector(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.PoolingDataSource.<Get>g__RentAsync|33_0(NpgsqlConnection conn, NpgsqlTimeout timeout, Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.<Open>g__OpenAsync|42_0(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlConnection.Open()
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1183
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroup() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 65
Exception data:
Severity: FATAL
SqlState: 3D000
MessageText: database "StudentProgress" does not exist
File: postinit.c
Line: 1050
Routine: InitPostgres
2024-12-05 13:08:15.288 +04:00 [INF] Получение всех объектов
2024-12-05 13:08:16.452 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":""},{"Id":0,"NameGroup":""}]
2024-12-05 13:08:30.577 +04:00 [INF] Добавление объекта
2024-12-05 13:08:30.579 +04:00 [DBG] Объект: {"Id":0,"NameGroup":"исэбд-22"}
2024-12-05 13:08:30.724 +04:00 [ERR] Ошибка при добавлении объекта
Npgsql.PostgresException (0x80004005): 42703: column "namegroup" of relation "groups" does not exist
POSITION: 21
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2965
at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527
at StudentPerformance.Repositories.Implementations.GroupRepository.CreateGroup(Group group) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 30
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "namegroup" of relation "groups" does not exist
Position: 21
File: parse_target.c
Line: 1070
Routine: checkInsertTargets
2024-12-05 13:10:04.161 +04:00 [INF] Добавление объекта
2024-12-05 13:10:04.174 +04:00 [DBG] Объект: {"Id":0,"NameGroup":"22"}
2024-12-05 13:10:04.323 +04:00 [ERR] Ошибка при добавлении объекта
Npgsql.PostgresException (0x80004005): 42703: column "namegroup" of relation "groups" does not exist
POSITION: 21
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2965
at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527
at StudentPerformance.Repositories.Implementations.GroupRepository.CreateGroup(Group group) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 30
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "namegroup" of relation "groups" does not exist
Position: 21
File: parse_target.c
Line: 1070
Routine: checkInsertTargets
2024-12-05 13:10:16.998 +04:00 [INF] Получение всех объектов
2024-12-05 13:10:17.016 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":""},{"Id":0,"NameGroup":""}]
2024-12-05 13:16:20.215 +04:00 [INF] Получение всех объектов
2024-12-05 13:16:22.404 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":"Группа 1"},{"Id":0,"NameGroup":"Группа 2"}]
2024-12-05 13:16:41.980 +04:00 [INF] Добавление объекта
2024-12-05 13:16:41.983 +04:00 [DBG] Объект: {"Id":0,"NameGroup":"исэбд-22"}
2024-12-05 13:16:42.208 +04:00 [ERR] Ошибка при добавлении объекта
Npgsql.PostgresException (0x80004005): 42703: column "course" of relation "groups" does not exist
POSITION: 32
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2965
at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527
at StudentPerformance.Repositories.Implementations.GroupRepository.CreateGroup(Group group) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 30
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "course" of relation "groups" does not exist
Position: 32
File: parse_target.c
Line: 1070
Routine: checkInsertTargets
2024-12-05 13:17:02.529 +04:00 [INF] Получение объекта по идентификатору
2024-12-05 13:17:02.530 +04:00 [DBG] Объект: 0
2024-12-05 13:17:02.612 +04:00 [ERR] Ошибка при поиске объекта
Npgsql.PostgresException (0x80004005): 42703: column "id" does not exist
POSITION: 31
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryRowImpl[T](IDbConnection cnn, Row row, CommandDefinition& command, Type effectiveType) in /_/Dapper/SqlMapper.cs:line 1277
at Dapper.SqlMapper.QueryFirst[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 836
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroupById(Int32 id) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 87
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "id" does not exist
Position: 31
File: parse_relation.c
Line: 3721
Routine: errorMissingColumn
2024-12-05 13:17:05.088 +04:00 [INF] Получение всех объектов
2024-12-05 13:17:05.102 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":"Группа 1"},{"Id":0,"NameGroup":"Группа 2"}]
2024-12-05 13:17:08.655 +04:00 [INF] Получение всех объектов
2024-12-05 13:17:08.663 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":"Группа 1"},{"Id":0,"NameGroup":"Группа 2"}]
2024-12-05 13:17:15.051 +04:00 [INF] Удаление объекта
2024-12-05 13:17:15.053 +04:00 [DBG] Объект: 0
2024-12-05 13:17:15.119 +04:00 [ERR] Ошибка при удалении объекта
Npgsql.PostgresException (0x80004005): 42703: column "id" does not exist
POSITION: 29
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2965
at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527
at StudentPerformance.Repositories.Implementations.GroupRepository.DeleteGroup(Int32 id) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 49
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "id" does not exist
Position: 29
File: parse_relation.c
Line: 3721
Routine: errorMissingColumn
2024-12-05 13:19:43.949 +04:00 [INF] Получение всех объектов
2024-12-05 13:19:46.043 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":"Группа 1"},{"Id":0,"NameGroup":"Группа 2"}]
2024-12-05 13:20:01.938 +04:00 [INF] Добавление объекта
2024-12-05 13:20:01.942 +04:00 [DBG] Объект: {"Id":0,"NameGroup":"исэбд-22"}
2024-12-05 13:20:02.154 +04:00 [ERR] Ошибка при добавлении объекта
Npgsql.PostgresException (0x80004005): 42703: column "namefaculty" of relation "groups" does not exist
POSITION: 40
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2965
at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527
at StudentPerformance.Repositories.Implementations.GroupRepository.CreateGroup(Group group) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 30
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "namefaculty" of relation "groups" does not exist
Position: 40
File: parse_target.c
Line: 1070
Routine: checkInsertTargets
2024-12-05 13:20:45.534 +04:00 [INF] Получение объекта по идентификатору
2024-12-05 13:20:45.537 +04:00 [DBG] Объект: 0
2024-12-05 13:20:45.613 +04:00 [ERR] Ошибка при поиске объекта
Npgsql.PostgresException (0x80004005): 42703: column "id" does not exist
POSITION: 31
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryRowImpl[T](IDbConnection cnn, Row row, CommandDefinition& command, Type effectiveType) in /_/Dapper/SqlMapper.cs:line 1277
at Dapper.SqlMapper.QueryFirst[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 836
at StudentPerformance.Repositories.Implementations.GroupRepository.ReadGroupById(Int32 id) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\GroupRepository.cs:line 87
Exception data:
Severity: ERROR
SqlState: 42703
MessageText: column "id" does not exist
Position: 31
File: parse_relation.c
Line: 3721
Routine: errorMissingColumn
2024-12-05 13:20:47.672 +04:00 [INF] Получение всех объектов
2024-12-05 13:20:47.694 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":"Группа 1"},{"Id":0,"NameGroup":"Группа 2"}]
2024-12-05 13:20:52.194 +04:00 [INF] Получение всех объектов
2024-12-05 13:20:52.248 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 42P01: relation "student" does not exist
POSITION: 15
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1184
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.StudentRepository.ReadStudents(Nullable`1 groupID) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\StudentRepository.cs:line 93
Exception data:
Severity: ERROR
SqlState: 42P01
MessageText: relation "student" does not exist
Position: 15
File: parse_relation.c
Line: 1452
Routine: parserOpenTable
2024-12-05 13:21:00.660 +04:00 [INF] Получение всех объектов
2024-12-05 13:21:00.670 +04:00 [DBG] Полученные объекты: [{"Id":0,"NameGroup":"Группа 1"},{"Id":0,"NameGroup":"Группа 2"}]
2024-12-05 13:21:07.759 +04:00 [INF] Добавление объекта
2024-12-05 13:21:07.768 +04:00 [DBG] Объект: {"Id":0,"Name":"авава","Surname":"вваав","GroupId":0}
2024-12-05 13:21:07.812 +04:00 [ERR] Ошибка при добавлении объекта
Npgsql.PostgresException (0x80004005): 42P01: relation "student" does not exist
POSITION: 15
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery(Boolean async, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteNonQuery()
at Dapper.SqlMapper.ExecuteCommand(IDbConnection cnn, CommandDefinition& command, Action`2 paramReader) in /_/Dapper/SqlMapper.cs:line 2965
at Dapper.SqlMapper.ExecuteImpl(IDbConnection cnn, CommandDefinition& command) in /_/Dapper/SqlMapper.cs:line 656
at Dapper.SqlMapper.Execute(IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 527
at StudentPerformance.Repositories.Implementations.StudentRepository.CreateStudent(Student student) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\StudentRepository.cs:line 33
Exception data:
Severity: ERROR
SqlState: 42P01
MessageText: relation "student" does not exist
Position: 15
File: parse_relation.c
Line: 1452
Routine: parserOpenTable
2024-12-05 13:21:19.384 +04:00 [INF] Получение всех объектов
2024-12-05 13:21:19.454 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 42P01: relation "student" does not exist
POSITION: 15
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1184
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentPerformance.Repositories.Implementations.StudentRepository.ReadStudents(Nullable`1 groupID) in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\StudentRepository.cs:line 93
Exception data:
Severity: ERROR
SqlState: 42P01
MessageText: relation "student" does not exist
Position: 15
File: parse_relation.c
Line: 1452
Routine: parserOpenTable
2024-12-05 13:21:26.154 +04:00 [INF] Получение всех объектов
2024-12-05 13:21:26.191 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 42P01: relation "professorsname" does not exist
POSITION: 15
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1184
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentProgress.Repositories.Implementations.ProfessorsNameRepository.ReadProfessorsName() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\ProfessorsNameRepository.cs:line 67
Exception data:
Severity: ERROR
SqlState: 42P01
MessageText: relation "professorsname" does not exist
Position: 15
File: parse_relation.c
Line: 1452
Routine: parserOpenTable
2024-12-05 13:21:38.506 +04:00 [INF] Получение всех объектов
2024-12-05 13:21:38.559 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 42P01: relation "professorsname" does not exist
POSITION: 15
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1184
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentProgress.Repositories.Implementations.ProfessorsNameRepository.ReadProfessorsName() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\ProfessorsNameRepository.cs:line 67
Exception data:
Severity: ERROR
SqlState: 42P01
MessageText: relation "professorsname" does not exist
Position: 15
File: parse_relation.c
Line: 1452
Routine: parserOpenTable
2024-12-05 13:21:49.442 +04:00 [INF] Получение всех объектов
2024-12-05 13:21:49.533 +04:00 [ERR] Ошибка при чтении объектов
Npgsql.PostgresException (0x80004005): 42P01: relation "professorsname" does not exist
POSITION: 15
at Npgsql.Internal.NpgsqlConnector.ReadMessageLong(Boolean async, DataRowLoadingMode dataRowLoadingMode, Boolean readingNotifications, Boolean isReadingPrependedMessage)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult(Boolean async, Boolean isConsuming, CancellationToken cancellationToken)
at Npgsql.NpgsqlDataReader.NextResult()
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(Boolean async, CommandBehavior behavior, CancellationToken cancellationToken)
at Npgsql.NpgsqlCommand.ExecuteReader(CommandBehavior behavior)
at Npgsql.NpgsqlCommand.ExecuteDbDataReader(CommandBehavior behavior)
at Dapper.SqlMapper.ExecuteReaderWithFlagsFallback(IDbCommand cmd, Boolean wasClosed, CommandBehavior behavior) in /_/Dapper/SqlMapper.cs:line 1156
at Dapper.SqlMapper.QueryImpl[T](IDbConnection cnn, CommandDefinition command, Type effectiveType)+MoveNext() in /_/Dapper/SqlMapper.cs:line 1184
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Dapper.SqlMapper.Query[T](IDbConnection cnn, String sql, Object param, IDbTransaction transaction, Boolean buffered, Nullable`1 commandTimeout, Nullable`1 commandType) in /_/Dapper/SqlMapper.cs:line 815
at StudentProgress.Repositories.Implementations.ProfessorsNameRepository.ReadProfessorsName() in C:\отп\StudentProgress\StudentProgress\Repositories\Implementations\ProfessorsNameRepository.cs:line 67
Exception data:
Severity: ERROR
SqlState: 42P01
MessageText: relation "professorsname" does not exist
Position: 15
File: parse_relation.c
Line: 1452
Routine: parserOpenTable