How to ignore Property on JSON deserialization?
My Dto has Id property: public class ADto { public int Id { get; set; } public string Text { get; set; } } The Id is set by EF Core not by Frontend request, so I want to ignore…
My Dto has Id property: public class ADto { public int Id { get; set; } public string Text { get; set; } } The Id is set by EF Core not by Frontend request, so I want to ignore…
Having following classes: public class Person { public int Age { get; set; } } using System.Collections; using System.Text.Json.Serialization; namespace SerializeCustomEnumerable; public class Statistics<T> : IEnumerable<(int Year, T Value)> where T : new() { // Underlying structure where data are…
I'm facing an issue when trying to generate Entity Framework Core models from an Azure SQL Database using the dotnet ef dbcontext scaffold command. Connection String Server=[server name].database.windows.net;Database=[database name];User ID=;Password="[password]";Encrypt=True;TrustServerCertificate=False;Connection Timeout=30; Command Used dotnet ef dbcontext scaffold "Server=[server name].database.windows.net;Database=[database name];User…
I have two .Net6 web app projects in a single .Net solution (.sln). The first application (App1) is for user management : this contains features like Login, password reset, my profile, and logout. the 2nd application (App2) are business application.…
I'm trying to get list of all users from Azure Active Directory using the below code, but still I'm getting only 100 records at one time. I'm using DOTNET Core version 7 var scopes = new string[] { "https://graph.microsoft.com/.default" };…
I have aplication by .Net Core API 7 and my app will save user info by session like this code when they login public int _UserId { get { if (HttpContext.Session.GetInt32("UserId") == null) { HttpContext.Session.SetInt32("UserId", 0); } return (int)HttpContext.Session.GetInt32("UserId"); }…
I have below code which gives proper result while debugging code in visual studio however when this code containing image is deployed on docker then it does not convert it to Spanish var ci = new CultureInfo(“es”); var dateStr =…
I'm facing an issue in my C# project where I'm getting the following error message: Severity Code Description Project File Line Suppression State Priority Error CS1705 Assembly 'Application' with identity 'Application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' uses 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=8.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' which…
I have a Razor Pages page, and want to submit an array of objects and automatically bind them. However, these objects will be edited (added, edited and deleted) on the client side. So rather than specify the index of each…
In abp framwork how can I add a new field to identityUserRole? I am facing the following error to add a new field to the table IdentityUserRole I will be glad if someone can guide me. The type 'Volo.Abp.Identity.IdentityUserRole' must…