AddCors appSettings getting value problem
I’m trying to add origins in services.AddCors WithOrigins method, but I can’t get origins from appSettings.
.NET 8 Web Api Host Filtering not working
I am trying to restrict access to a .NET Web Api using Host Filtering so that only an Azure Function App can call the API.
Data Paging Cast Object of type System.Int64 to type System.Int32
I have having trouble with this data paging script. I get the error System.Int64 to type System.Int32. The logs do not say anything useful. Call Stack has nothing. This line long long totalRecipes = await recipesQuery.LongCountAsync(); should show Int64. I have tried different ways of coding but no luck still say the same error message.
How optimizing database query within the context of an asp.net core api
I have coding asp.net core
How to select from two tables using LINQ statement?
[Route(“Mode”)] [HttpGet] public object Mode() { string query = “Select Sum(c.total) as Total, Sum(h.Qty) as Qty, Sum(c.Amount) as Amount, Count(c.Item) as Count, ” + “c.Item, c.Model, h.Date From Cart c Left Join House as h On c.Id = h.Id Group By c.Item, c.Model, h.HarvestDate “; DataTable dt = new DataTable(); string sqlDataSource = _configuration.GetConnectionString(“DefaultConnection”); SqlDataReader […]
Response.RemoveOutputCacheItem in ASP.NET Core
In ASP.NET MVC 5 I often invalidated request cache items with code like this in a controller
I’m coding an API ASP dot net core backend, I use query by using LNQ, not successfully query between two tables
I encounter issue in statement query able join between 2 tables
AspNetCore DataProtection breaks OIDC login in Blazor app
I’ve got an installation of Duende Identity Server that’s working fine with WebAPI and React apps.
I don’t succesfully use function TryGetValue of ToDictionary
I’m coding Backend ASP.NET CORe api. I use call api of differently project.
I encourted issue in method AssignName()
My code
What’s is the relationship between WebApplicationBuilder and WebApplication in ASP.NET Core web applications?
Why does ASP.NET Core define both WebApplicationBuilder
and WebApplication
?