Executed DbCommand (31ms) [Parameters=[@p0='?', @p1='?' (DbType = DateTime), @p2='?' (DbType = Int32), @p3='?', @p4='?' (DbType = DateTime), @p5='?', @p6='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30'] INSERT INTO "Notes" ("Content", "CreatedAt", "NoteType", "Title", "UpdatedAt", "UserId", "ViewCount") VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6) RETURNING "ID";
c#public class Note{ public int ID { get; set; } public string Title { get; set; } public string Content { get; set; } public DateTime CreatedAt { get; set; } public DateTime UpdatedAt { get; set; } public NoteType NoteType { get; set; } [Omitted] public User? User { get; set; } public string? UserId { get; set; } public List<Tag>? Tags { get; set; } // shows how many times the note has been viewed public int? ViewCount { get; set; }}
Cannot write DateTime with Kind=Local to PostgreSQL type 'timestamp with time zone', only UTC is supported.