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
Back To Top
Search