File tree Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Expand file tree Collapse file tree 3 files changed +20
-13
lines changed Original file line number Diff line number Diff line change 6
6
</PropertyGroup >
7
7
8
8
<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 " />
11
11
<PackageReference Include =" Microsoft.Graph.Auth" Version =" 1.0.0-preview.5" />
12
12
<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 " />
18
18
</ItemGroup >
19
19
20
20
</Project >
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
31
31
entity . HasKey ( e => e . LogId ) ;
32
32
33
33
entity . HasIndex ( e => e . LogType )
34
- . HasName ( "IX_Logs" ) ;
34
+ . HasDatabaseName ( "IX_Logs" ) ;
35
35
36
36
entity . Property ( e => e . LogDate ) . HasColumnType ( "datetime" ) ;
37
37
Original file line number Diff line number Diff line change 90
90
91
91
var user = authState .User ;
92
92
93
- var UserID =
93
+ var UserID =
94
94
user .Claims .FirstOrDefault (
95
- c => c .Type ==
95
+ c => c .Type ==
96
96
" http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier" )?
97
97
.Value ;
98
98
116
116
{
117
117
if (result != null )
118
118
{
119
- if ( result )
119
+ try
120
120
{
121
- Task .Run (Search );
121
+ if (result )
122
+ {
123
+ Task .Run (Search );
124
+ }
122
125
}
126
+ catch
127
+ {
128
+ }
129
+
123
130
StateHasChanged ();
124
131
}
125
132
}
173
180
174
181
if (AdministrationGroup != " " )
175
182
{
176
- isAdmin =
183
+ isAdmin =
177
184
(colGroups
178
185
.Where (x => x .displayName .ToLower () == AdministrationGroup .ToLower ())
179
186
.FirstOrDefault () != null );
You can’t perform that action at this time.
0 commit comments