feat(Immortal) Disabling SQL

This commit is contained in:
2022-03-30 21:28:08 -04:00
parent 4d27140e36
commit 363d6835b8
21 changed files with 427 additions and 132 deletions
+8 -3
View File
@@ -221,14 +221,19 @@
@code {
#if NO_SQL
[Parameter]
public SprintModel Sprint { get; set; }
public List<TaskModel> Tasks { get; set; }
#else
[Parameter]
public DbSet<TaskModel> Tasks { get; set; }
#endif
[Parameter]
public SprintModel Sprint { get; set; }
private List<TaskModel> selectedTasks { get; set; }
protected override void OnInitialized() {
selectedTasks = (from task in Tasks
where task.SprintModelId == Sprint.Id