阅读背景:

要将数据转义到哪个层才能发送到数据库?

来源:互联网 

I have an MVC web application, and I'm wondering where the best place to escape data to send to a database is: the controller or model. I can't think of any arguments toward either side. Is there an accepted place to escape data? If not, what are the pros and cons of escaping data in a given tier?I have an MVC web application, and I'm wonderin




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: