D1Migrator<TContext>.Migrate<TEntry,TValue> method
Migrate data from an unencrypted column to an encrypted column.
public void Migrate<TEntry, TValue>(Func<TContext, IQueryable<TEntry>> where,
Func<TEntry, TValue> oldPropertyGetter, Action<TEntry, TValue> newPropertySetter,
int batchSize = 100)
parameter | description |
---|---|
TEntry | The type of entry to migrate. |
TValue | The type of value to migrate. |
where | Filter to locate rows that should be migrated. |
oldPropertyGetter | Func used to get the unecrypted value. |
newPropertySetter | Action used to set the encrypted value. |
batchSize | The number of rows to process at a time. |
See Also
- class D1Migrator<TContext>
- namespace CyberCrypt.D1.EntityFramework.Migrator