We are basically looking to implememnt something like this where we can see if a Encryped attribute is set and then if need be encrypt the data
ASP.NET Boilerplate is a starting point for new modern web applications using best practices and most popular tools. It's aimed to be a solid model, a general-purpose application framework and a project template.
var pendingEntities = ChangeTracker.Entries()
.Where(e => e.State == EntityState.Added || e.State == EntityState.Modified)