Click here to Skip to main content
15,891,841 members
Articles / Desktop Programming / Windows Forms

Three-tier .NET Application Utilizing Three ORM Technologies

Rate me:
Please Sign up or sign in to vote.
4.95/5 (118 votes)
30 Jan 2010CPOL109 min read 164.3K   4.4K   437  
LINQ to SQL, Entity Framework, and NHibernate used in a parallel fashion in a three-tier WinForms application.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <!-- Configuration Sections In This File -->
  <configSections>

    <!-- Log4Net Section -->
    <section
        name="log4net"
        type="log4net.Config.Log4NetConfigurationSectionHandler, log4net"
        />

  </configSections>

  <!-- Log4Net Configuration -->
  <log4net>

    <!-- Define an output appender (where the logs can go) -->
    <appender name="LogFileAppender" type="log4net.Appender.FileAppender, log4net">
      <param name="File" value="log.txt" />
      <param name="AppendToFile" value="true" />
      <layout type="log4net.Layout.PatternLayout, log4net">
        <param name="ConversionPattern" value="%d [%t] %-5p %c [%x] &lt;%X{auth}&gt; - %m%n" />
      </layout>
    </appender>

    <!-- Note: Priority level can be ALL/DEBUG/INFO/WARN/ERROR/FATAL/OFF -->
    <!-- Setup the root category, set the default priority level and add the appender(s) (where the logs will go) -->
    <root>
      <priority value="WARN" />
      <appender-ref ref="LogFileAppender" />
    </root>
  </log4net>

  <appSettings file="LEKSettings.config">
  </appSettings>
</configuration>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior) Austin Regional Clinic
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions