Cleanup .net warnings
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
using DiunaBIWebAPI.dataProcessors;
|
||||
using DiunaBIWebAPI.dataProcessors;
|
||||
using Google.Apis.Sheets.v4;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using WebAPI.Controllers;
|
||||
@@ -69,7 +69,7 @@ namespace WebAPI.dataProcessors
|
||||
Layer? dataSource = db.Layers.Where(x =>
|
||||
x.Type == LayerType.processed &&
|
||||
!x.IsDeleted &&
|
||||
x.Name.Contains($"{year}/{month}-{source.Desc1}-T3")
|
||||
x.Name!=null && x.Name.Contains($"{year}/{month}-{source.Desc1}-T3")
|
||||
)
|
||||
.Include(x => x.Records)
|
||||
.FirstOrDefault();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using DiunaBIWebAPI.dataProcessors;
|
||||
using DiunaBIWebAPI.dataProcessors;
|
||||
using Google.Apis.Sheets.v4;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using WebAPI.Controllers;
|
||||
@@ -67,7 +67,7 @@ namespace WebAPI.dataProcessors
|
||||
Layer? dataSource = db.Layers.Where(x =>
|
||||
x.Type == LayerType.processed &&
|
||||
!x.IsDeleted &&
|
||||
x.Name.Contains($"{year}/13-{source.Desc1}-T3")
|
||||
x.Name != null && x.Name.Contains($"{year}/13-{source.Desc1}-T3")
|
||||
)
|
||||
.Include(x => x.Records)
|
||||
.FirstOrDefault();
|
||||
@@ -87,7 +87,7 @@ namespace WebAPI.dataProcessors
|
||||
Layer? dataSource = db.Layers.Where(x =>
|
||||
x.Type == LayerType.processed
|
||||
&& !x.IsDeleted
|
||||
&& x.Name.Contains($"{year}/{i}-AA-T3"))
|
||||
&& x.Name!=null && x.Name.Contains($"{year}/{i}-AA-T3"))
|
||||
.Include(x => x.Records)
|
||||
.FirstOrDefault();
|
||||
if (dataSource != null)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using DiunaBIWebAPI.dataProcessors;
|
||||
using DiunaBIWebAPI.dataProcessors;
|
||||
using Google.Apis.Sheets.v4;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using WebAPI.Controllers;
|
||||
@@ -67,7 +67,7 @@ namespace WebAPI.dataProcessors
|
||||
Layer? dataSource = db.Layers.Where(x =>
|
||||
x.Type == LayerType.processed
|
||||
&& !x.IsDeleted
|
||||
&& x.Name.Contains($"{year}/{i}-{source}-T3"))
|
||||
&& x.Name!=null && x.Name.Contains($"{year}/{i}-{source}-T3"))
|
||||
.Include(x => x.Records)
|
||||
.FirstOrDefault();
|
||||
if (dataSource != null)
|
||||
|
||||
Reference in New Issue
Block a user