<?xml version="1.0"?> <configuration> <configSections> <section name="mvc" type="PixelDragons.MVC.Configuration.MVCConfigurationHandler, PixelDragons.MVC" /> <section name="nhibernate" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.3300.0,Culture=neutral, PublicKeyToken=b77a5c561934e089"/> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> <mvc mappingFile="mvc.config" controllerPattern="PixelDragons.MVCSample.Controllers.[ControllerName]Controller" viewWithActionPattern="UI/views/[ControllerName]/[ActionName].aspx" viewWithNoActionPattern="UI/views/[ControllerName].aspx" defaultController="PixelDragons.MVC.Controllers.BaseController"> <entityAssemblies> <add name="PixelDragons.MVCSample.Domain" /> </entityAssemblies> <autoTransactions> <add regex="^Save.*" type="NewTransaction" /> <add regex="^Delete.*" type="NewTransaction" /> </autoTransactions> </mvc> <nhibernate> <add key="hibernate.connection.provider" value="NHibernate.Connection.DriverConnectionProvider"/> <add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect"/> <add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver"/> <add key="hibernate.connection.connection_string" value="server=PIXELDRAGONS01\SQLEXPRESS;database=MVC;uid=pd_dbuser;pwd=Squash789;"/> <!--<add key="hibernate.connection.connection_string" value="server=mssql.server;database=pixeldragons_mvc;uid=pdmvcuser;pwd=Squash789;"/>--> <!--<add key="hibernate.connection.connection_string" value="server=[YOUR SERVER HERE];database=[YOUR DATABASE HERE];uid=[YOUR USER ID];pwd=[YOUR PASSWORD HERE];"/>--> </nhibernate> <log4net> <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender" > <file value="log.txt" /> <appendToFile value="true" /> <rollingStyle value="Size" /> <maxSizeRollBackups value="3" /> <maximumFileSize value="200KB" /> <staticLogFileName value="true" /> <layout type="log4net.Layout.PatternLayout"> <conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline" /> </layout> </appender> <root> <level value="DEBUG" /> <appender-ref ref="RollingFileAppender" /> </root> </log4net> <appSettings/> <system.web> <compilation debug="true" /> <customErrors mode="Off" /> <httpHandlers> <remove verb="*" path="*.ashx"/> <add verb="*" path="*.ashx" type="PixelDragons.MVC.MVCHandler, PixelDragons.MVC" /> </httpHandlers> </system.web> </configuration>
By viewing downloads associated with this article you agree to the Terms of use 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.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
Skills that self-taught computer programmers lack