Skip to content

Commit b6d389c

Browse files
committed
Updated to latest Nuget Packages
1 parent 345093b commit b6d389c

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

BlazorSimpleSurvey.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
</PropertyGroup>
77

88
<ItemGroup>
9-
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="3.1.9" />
10-
<PackageReference Include="Microsoft.Extensions.Configuration" Version="3.1.9" />
9+
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="5.0.10" />
10+
<PackageReference Include="Microsoft.Extensions.Configuration" Version="5.0.0" />
1111
<PackageReference Include="Microsoft.Graph.Auth" Version="1.0.0-preview.5" />
1212
<PackageReference Include="Microsoft.Graph.Beta" Version="0.29.0-preview" />
13-
<PackageReference Include="Microsoft.Identity.Web" Version="1.1.0" />
14-
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.1.0" />
15-
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.4" />
16-
<PackageReference Include="Radzen.Blazor" Version="2.15.14" />
17-
<PackageReference Include="Z.EntityFramework.Plus.EFCore" Version="3.0.67" />
13+
<PackageReference Include="Microsoft.Identity.Web" Version="1.17.0" />
14+
<PackageReference Include="Microsoft.Identity.Web.UI" Version="1.17.0" />
15+
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="5.0.2" />
16+
<PackageReference Include="Radzen.Blazor" Version="3.10.1" />
17+
<PackageReference Include="Z.EntityFramework.Plus.EFCore" Version="5.2.13" />
1818
</ItemGroup>
1919

2020
</Project>

Data/SimpleSurveyContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
3131
entity.HasKey(e => e.LogId);
3232

3333
entity.HasIndex(e => e.LogType)
34-
.HasName("IX_Logs");
34+
.HasDatabaseName("IX_Logs");
3535

3636
entity.Property(e => e.LogDate).HasColumnType("datetime");
3737

Pages/Administration.razor

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090

9191
var user = authState.User;
9292

93-
var UserID =
93+
var UserID =
9494
user.Claims.FirstOrDefault(
95-
c => c.Type ==
95+
c => c.Type ==
9696
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier")?
9797
.Value;
9898

@@ -116,10 +116,17 @@
116116
{
117117
if (result != null)
118118
{
119-
if (result)
119+
try
120120
{
121-
Task.Run(Search);
121+
if (result)
122+
{
123+
Task.Run(Search);
124+
}
122125
}
126+
catch
127+
{
128+
}
129+
123130
StateHasChanged();
124131
}
125132
}
@@ -173,7 +180,7 @@
173180

174181
if (AdministrationGroup != "")
175182
{
176-
isAdmin =
183+
isAdmin =
177184
(colGroups
178185
.Where(x => x.displayName.ToLower() == AdministrationGroup.ToLower())
179186
.FirstOrDefault() != null);

0 commit comments

Comments
 (0)