forked from ddrilling/AsbCloudServer
Правка поля DateDownload в Manual и ManualDto
This commit is contained in:
parent
616cb242d6
commit
0df79ee0fc
@ -18,7 +18,7 @@ public class ManualDto : IId
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Дата загрузки
|
/// Дата загрузки
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public DateTime DateDownload { get; set; }
|
public DateTimeOffset DateDownload { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Id автора
|
/// Id автора
|
||||||
|
@ -1390,7 +1390,7 @@ namespace AsbCloudDb.Migrations
|
|||||||
|
|
||||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
b.Property<DateTime>("DateDownload")
|
b.Property<DateTimeOffset>("DateDownload")
|
||||||
.HasColumnType("timestamp with time zone")
|
.HasColumnType("timestamp with time zone")
|
||||||
.HasColumnName("date_download")
|
.HasColumnName("date_download")
|
||||||
.HasComment("Дата загрузки");
|
.HasComment("Дата загрузки");
|
||||||
|
@ -15,8 +15,8 @@ public class Manual : IId
|
|||||||
[Column("name"), Comment("Название")]
|
[Column("name"), Comment("Название")]
|
||||||
public string Name { get; set; } = null!;
|
public string Name { get; set; } = null!;
|
||||||
|
|
||||||
[Column("date_download"), Comment("Дата загрузки")]
|
[Column("date_download", TypeName = "timestamp with time zone"), Comment("Дата загрузки")]
|
||||||
public DateTime DateDownload { get; set; }
|
public DateTimeOffset DateDownload { get; set; }
|
||||||
|
|
||||||
[Column("id_directory"), Comment("Id директории")]
|
[Column("id_directory"), Comment("Id директории")]
|
||||||
public int IdDirectory { get; set; }
|
public int IdDirectory { get; set; }
|
||||||
|
@ -57,7 +57,7 @@ public class ManualCatalogService : IManualCatalogService
|
|||||||
var manual = new ManualDto
|
var manual = new ManualDto
|
||||||
{
|
{
|
||||||
Name = name,
|
Name = name,
|
||||||
DateDownload = DateTime.UtcNow,
|
DateDownload = DateTimeOffset.UtcNow,
|
||||||
IdDirectory = idDirectory,
|
IdDirectory = idDirectory,
|
||||||
IdCategory = IdFileCategory,
|
IdCategory = IdFileCategory,
|
||||||
IdAuthor = idAuthor
|
IdAuthor = idAuthor
|
||||||
|
Loading…
Reference in New Issue
Block a user