来自ADO.Net DBContext Generator的安全警告 [英] Security warning from ADO.Net DBContext Generator

查看:166
本文介绍了来自ADO.Net DBContext Generator的安全警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

HI

" ;运行此文本模板可能会损害您的计算机。如果您从不受信任的来源获取它,请不要运行它..."

当我尝试从edmx文件添加CodegenerationItem时,此警报的原因是什么。

What is the cause of this alert , while i am trying to Add CodegenerationItem from edmx file.

如何避免此警报?这是一个严重的警告

How can i avoid this alert ? Is it a serious warning

推荐答案

这运行任何T4模板时发出警告。它只是提醒您即将执行某些代码,并且只有在您信任该代码的来源时才应该执行此操作。 Microsoft发布的任何模板都可以安全地信任。

This warning is issued when running any T4 template. It is just a reminder that you are about to execute someone elses code and that you should only do so if you trust the source of that code. Any template published by Microsoft is safe to trust.

您可以转到工具>来停用这些警告。
选项...
> 文字模板并将
显示安全信息
设置为错误

You can disable these warnings by going to Tools > Options... > Text Templating and setting the Show Security Message to False.


这篇关于来自ADO.Net DBContext Generator的安全警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆