Skip to content

Commit ed77eb2

Browse files
committed
FIX: DatabaseTableView UsedMb column
1 parent 630b94b commit ed77eb2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Src/Apps/Web/Ws.DeviceControl.Api/App/Features/Database/Impl/DatabaseService.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public List<DataBaseTableEntry> GetAllTables()
2323
Schema = i.Schema,
2424
Table = i.Table,
2525
Rows = i.Rows,
26-
UsedMb = i.UsedMb,
26+
UsedMb = i.UsedMb ?? 0,
2727
FileName = i.FileName
2828
})
2929
.OrderBy(i => i.FileName)

Src/Infrastructure/Ws.Database.EntityFramework/Views/Diag/DatabaseTables/DatabaseTableViewEntity.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Ws.Database.EntityFramework.Views.Diag.DatabaseTables;
33
public class DatabaseTableView
44
{
55
public int Rows;
6-
public int UsedMb;
6+
public int? UsedMb;
77
public string Table = string.Empty;
88
public string Schema = string.Empty;
99
public string FileName = string.Empty;

0 commit comments

Comments
 (0)