skip to Main Content

Asp.net – Entity Framework: Save Private Field

I'm using Entity Framework with MongoDB. I have a class, Account with the following field: private readonly byte[] salt; Account is configured in Entity Framework like so: protected override void OnModelCreating(ModelBuilder modelBuilder) { base.OnModelCreating(modelBuilder); modelBuilder.Entity<Account>().ToCollection("accounts"); } When I save an…

VIEW QUESTION

Asp.net – Scheme already exists: Bearer in .NET Core 8.0

I'm working on integrating Identity into my .NET Core 8.0 application and implementing JWT Bearer authentication. However, I'm encountering the error System.InvalidOperationException: Scheme already exists: Bearer when running the application. My Program.cs code is : using Solv.Identity.Api.Common; using Solv.Identity.Api.Configurations; using…

VIEW QUESTION
Back To Top
Search