Production Grade Cloud-Ready .NET 8 Starter Kit (Web API + Blazor Client) with Multitenancy Support, and Clean/Modular Architecture that saves roughly 200+ Development Hours! All Batteries Included.
I cloned the entire repo to my local, updated the connection string, then start debug, the API is successfully running up, but when I trying to get token via api/tokens, I got exception in GetTokenAsync() method.
This is the stacktrace:
at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression)
at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable1.GetEnumerator() at Microsoft.EntityFrameworkCore.Internal.InternalDbSet1.System.Collections.Generic.IEnumerable.GetEnumerator()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at FSH.WebApi.Infrastructure.Identity.TokenService.d__6.MoveNext() in E:\fsh\dotnet-webapi-starter-kit-master\src\Infrastructure\Identity\TokenService.cs:line 43
I tried to use postgres and mssql, both of them able to auto create the tables and also inject data when first time running up.
I cloned the entire repo to my local, updated the connection string, then start debug, the API is successfully running up, but when I trying to get token via api/tokens, I got exception in GetTokenAsync() method.
This is the stacktrace: at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.Execute[TResult](Expression query) at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryProvider.Execute[TResult](Expression expression) at Microsoft.EntityFrameworkCore.Query.Internal.EntityQueryable.GetEnumerator()
at System.Collections.Generic.Listd__6.MoveNext() in E:\fsh\dotnet-webapi-starter-kit-master\src\Infrastructure\Identity\TokenService.cs:line 43
1.GetEnumerator() at Microsoft.EntityFrameworkCore.Internal.InternalDbSet
1.System.Collections.Generic.IEnumerable1..ctor(IEnumerable
1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at FSH.WebApi.Infrastructure.Identity.TokenService.I tried to use postgres and mssql, both of them able to auto create the tables and also inject data when first time running up.