MVC使用LINQ to实体瓦特/ SQL加密 [英] MVC using Linq to Entity w/ sql encryption
问题描述
目前我使用SQL加密和想继续使用它通过Linq的。我已存储过程的接线表,以处理在后端加密/解密我所有的CRUD。问题是我的数据库模型中看到的VARBINARY(最大值)的字段类型是用于SQL加密存储。此表的检索SP做这样解密返回一个字符串值。怎样才能解决这个问题。好像模型需要认识到位VARBINARY的字符串,但我不确定如何处理这个问题。
提前致谢。
Currently i am using sql encryption and would like to continue using it through Linq. I have all my CRUD stored proc's wired up to the table in order to handle the encryption/decryption on the backend. Problem is my database model see's a field type of varbinary(max) which is used for the sql encryption storage. The retrieval sp for this table does the decryption thus returning a string value. How does one get around this. Seems like the model needs to recognize a string in place of the varbinary but i am unsure of how to handle this. Thanks in advance.
推荐答案
所以更改表映射视图映射数据库模型?
So change the table mapping to a view mapping in the database model?
这篇关于MVC使用LINQ to实体瓦特/ SQL加密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!