简体   繁体   中英

Entity Framework and Encrypted Database

I have a column (salary) encrypted in database (MS SQL Server). I am using the entity framework to display/edit the records from the front end. Any idea how to decrypt the column in the front end to show the salary value?

Thanks

如果要在数据库级别进行加密,则必须使用数据库级别的解密-使用ObjectContext.ExecuteStoreQuery<YourEntityType>(...)从数据库加载记录-将具有正确解密用法的SQL命令传递给该方法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM