Skip to content

Commit 82a33e9

Browse files
committed
fix the columns
1 parent 2ae0db6 commit 82a33e9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

DatabaseProjectAPI/Entities/Stock.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
public class Stock
55
{
66
[Key]
7+
[Column("stock_id")]
78
public int StockId { get; set; }
89
public string? Symbol { get; set; }
910
public decimal OpenValue { get; set; }

DatabaseProjectAPI/Entities/StockHistory.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,17 @@
44
public class StockHistory
55
{
66
[Key]
7+
[Column("history_id")]
78
public int HistoryId { get; set; }
9+
[Column("stock_id")]
810
public int StockId { get; set; }
11+
[Column("timestamp")]
912
public DateTime Timestamp { get; set; }
13+
[Column("opened_value")]
1014
public decimal OpenedValue { get; set; }
15+
[Column("closed_value")]
1116
public decimal ClosedValue { get; set; }
17+
[Column("Symbol")]
1218
public string Symbol { get; set; }
1319
[ForeignKey("StockId")]
1420
public Stock Stock { get; set; }

0 commit comments

Comments
 (0)