Skip to content
Code that allows you to save the value of a private property to a database via Entity Framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
EF6MVCBindToPrivateProperty
EF6MVC_btpp.sln
Readme.md

Readme.md

Binding a private property so Entity Framework can track it

This is a pretty simple project (mostly auto scaffolded) that shows how to setup a private property in a model to be saved to your database using Entity Framework. The details of why it was created are on my blog at http://astutelogic.com/entity-framework-model-binding-private-properties

The only thing to take from this is the way to bind private properties.

The particular solution for having an encrypted value in the database but unencrypted in the model, as well as the "Encryption" algorithm, shown in this solution are NOT advised for production. This is demoware only.

You might need to Enable NuGet Package Restore on the solution file.

You can’t perform that action at this time.