【IBatisNet & Spring.Net】ORM与IOC 简单配置

1.修改WebConfig.cs配置文件

<configuration>
  <configSections>
    <sectionGroup name="spring">
      <section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web" />
      <section name="objects" type="Spring.Context.Support.DefaultSectionHandler, Spring.Core" />
    </sectionGroup>
  </configSections>
  <spring>
    <context>
      <resource uri="file://~/SpringDaoObjects.config" />
      <resource uri="config://spring/objects" />
    </context>
    <objects xmlns="http://www.springframework.net" />
  </spring>
<!-- 其它配置内容 -->
</configuration>
WebConfig.cs

 

posted @ 2014-01-12 14:18  Wiki-Locas  阅读(249)  评论(0编辑  收藏  举报