newww
This commit is contained in:
@@ -13,7 +13,7 @@ namespace SchoolAgainStudyContracts.BindingModel
|
|||||||
|
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
|
|
||||||
public DateTime DateCreate { get; set; }
|
public DateTime DateCreate { get; set; }
|
||||||
|
|
||||||
public int StudentId { get; set; }
|
public int StudentId { get; set; }
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ namespace SchoolAgainStudyContracts.ViewModel
|
|||||||
[DisplayName("Описание")]
|
[DisplayName("Описание")]
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
[DisplayName("Дата создания")]
|
[DisplayName("Дата создания")]
|
||||||
public DateTime DateCreate { get; set; }
|
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||||
|
|
||||||
public int TaskId { get; set; }
|
public int TaskId { get; set; }
|
||||||
[DisplayName("Задание")]
|
[DisplayName("Задание")]
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ namespace SchoolAgainStudyDataBaseImplements.Models
|
|||||||
[Required]
|
[Required]
|
||||||
public string Description { get; set; } = string.Empty;
|
public string Description { get; set; } = string.Empty;
|
||||||
[Required]
|
[Required]
|
||||||
public DateTime DateCreate { get; set; }
|
public DateTime DateCreate { get; set; } = DateTime.SpecifyKind(DateTime.Now, DateTimeKind.Utc);
|
||||||
[Required]
|
[Required]
|
||||||
public int TaskId { get; set; }
|
public int TaskId { get; set; }
|
||||||
public string TaskName { get; set; } = string.Empty;
|
public string TaskName { get; set; } = string.Empty;
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ namespace SchoolAgainStudyDataBaseImplements
|
|||||||
{
|
{
|
||||||
if (optionsBuilder.IsConfigured == false)
|
if (optionsBuilder.IsConfigured == false)
|
||||||
{
|
{
|
||||||
optionsBuilder.UseNpgsql("Server=PostgreSQL;Host=localhost;Port=5432;Database=AutoPlantDB;Username=postgres;Password=postgres");
|
optionsBuilder.UseNpgsql("Server=PostgreSQL;Host=localhost;Port=5432;Database=SchoolAgainStudyDataBase;Username=postgres;Password=postgres");
|
||||||
}
|
}
|
||||||
base.OnConfiguring(optionsBuilder);
|
base.OnConfiguring(optionsBuilder);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user