[英]Entity Framework and Encrypted Database
I have a column (salary) encrypted in database (MS SQL Server). 我在数据库(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命令传递给该方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.