在MVP架构中使用App.Config [英] Use of App.Config in the MVP architecture
本文介绍了在MVP架构中使用App.Config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
Hi All,
<?xml version="1.0" encoding="utf-8>
<configuration>
<configSections>
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
<section name="EntityFramework&" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
</configSections>
<entityFramework>
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
<parameters>
<parameter value="v11.0" />
</parameters>
</defaultConnectionFactory>
</entityFramework>
</configuration>
我只是复制并粘贴这个应用程序。从另一个应用程序配置完成我的工作,它工作正常,但我不明白在数据模型或项目中使用App.config。
任何人都可以帮助我吗?
谢谢。
I just copy and paste this app.config from another application for the complete my work and it working fine,But i didn't understand the use of App.config in the data model or in the project.
Can anyone help me?
Thank You.
推荐答案
请参阅此处,
http://msdn.microsoft.com/en-us/library/aa374182(v = vs.85).aspx [ ^ ]
这篇关于在MVP架构中使用App.Config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文