Eastrall / EntityFrameworkCore.DataEncryption

A plugin for Microsoft.EntityFrameworkCore to add support of encrypted fields using built-in or custom encryption providers.
MIT License
329 stars 55 forks source link

Exclude discriminators (inheritance) from being encrypted #1

Closed olivierbouchomsfontys closed 5 years ago

olivierbouchomsfontys commented 5 years ago

Exclude discriminators (inheritance) from being encrypted. This would otherwise cause a NullReferenceException during a migration with inherited classes.

codecov-io commented 5 years ago

Codecov Report

Merging #1 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #1   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          10     10           
  Lines         232    233    +1     
=====================================
+ Hits          232    233    +1
Impacted Files Coverage Δ
...eworkCore.DataEncryption/ModelBuilderExtensions.cs 100% <100%> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d17c0ae...936d6eb. Read the comment docs.

Eastrall commented 5 years ago

Thank for contributing to this project. Indeed, I didn't thought about the descriminators. PR looks good to me. Merging.