- pixeldragonsmvc_demo.zip
- PixelDragons.MVC
- ArrayConverter.cs
- bin
- Debug
- Castle.DynamicProxy.dll
- Iesi.Collections.dll
- log4net.dll
- NHibernate.dll
- PixelDragons.MVC.dll
- PixelDragons.MVC.pdb
- Release
- Command.cs
- Common
- Configuration
- Controllers
- Dependencies
- Castle.DynamicProxy.dll
- Iesi.Collections.dll
- log4net.dll
- NHibernate.dll
- Exceptions
- Interfaces
- MVCHandler.cs
- obj
- Persistence
- PixelDragons.MVC.csproj
- PixelDragons.MVC.csproj.user
- Properties
- View.cs
- PixelDragons.MVCSample.Domain
- PixelDragons.MVCSample
- App_Code
- Controllers
- Bin
- Castle.DynamicProxy.dll
- Iesi.Collections.dll
- log4net.dll
- NHibernate.dll
- PixelDragons.MVC.dll
- PixelDragons.MVC.pdb
- PixelDragons.MVCSample.Domain.dll
- PixelDragons.MVCSample.Domain.pdb
- default.aspx
- Documentation
- PixelDragonsMVC.NET v0.2 BETA.odt
- PixelDragonsMVC.NET v0.2 BETA.pdf
- Thumbs.db
- mvc.config
- PixelDragons.MVCSample.sln
- SQL Scripts
- UI
- controls
- css
- images
- background.gif
- buttons
- back.gif
- login.gif
- next.gif
- save.gif
- Thumbs.db
- icons
- error.gif
- info.gif
- Thumbs.db
- shadow_content.png
- shadow_footer.png
- shadow_header.png
- Thumbs.db
- javascript
- masterPages
- viewParts
- views
- web.config
|
/***********************************************************
*
* Copyright 2007 Pixel Dragons Ltd. All rights reserved.
*
* http://www.codeplex.com/PixelDragonsMVC for licence, more
* information and latest source code.
*
* Check out our other stuff at http://www.pixeldragons.com
*
***********************************************************/
using System;
using System.Collections.Generic;
using System.Text;
using System.Configuration;
using System.Xml;
namespace PixelDragons.MVC.Configuration
{
public class MVCConfigurationHandler : ConfigurationSection
{
#region Fields
private string _mappingFilePath;
private XmlDocument _configXml;
#endregion
#region Constructors
public MVCConfigurationHandler()
{
}
public MVCConfigurationHandler(string mappingFile, string controllerPattern, string viewWithActionPattern, string viewWithNoActionPattern, string defaultController)
{
this.MappingFile = mappingFile;
this.ControllerPattern = controllerPattern;
this.ViewWithActionPattern = viewWithActionPattern;
this.ViewWithNoActionPattern = viewWithNoActionPattern;
this.DefaultController = defaultController;
}
#endregion
#region Properties
[ConfigurationProperty("mappingFile", DefaultValue = "mvc.config", IsRequired = true)]
public string MappingFile
{
get { return this["mappingFile"].ToString(); }
set { this["mappingFile"] = value; }
}
[ConfigurationProperty("controllerPattern", DefaultValue = "", IsRequired = true)]
public string ControllerPattern
{
get { return this["controllerPattern"].ToString(); }
set { this["controllerPattern"] = value; }
}
[ConfigurationProperty("viewWithActionPattern", DefaultValue = "UI/views/[CONTROLLERNAME]/[ACTIONNAME].aspx", IsRequired = true)]
public string ViewWithActionPattern
{
get { return this["viewWithActionPattern"].ToString(); }
set { this["viewWithActionPattern"] = value; }
}
[ConfigurationProperty("viewWithNoActionPattern", DefaultValue = "UI/views/[CONTROLLERNAME].aspx", IsRequired = true)]
public string ViewWithNoActionPattern
{
get { return this["viewWithNoActionPattern"].ToString(); }
set { this["viewWithNoActionPattern"] = value; }
}
[ConfigurationProperty("defaultController", DefaultValue = "PixelDragons.MVC.Controllers.BaseController", IsRequired = true)]
public string DefaultController
{
get { return this["defaultController"].ToString(); }
set { this["defaultController"] = value; }
}
[ConfigurationProperty("entityAssemblies")]
public EntityAssemblyCollection EntityAssemblies
{
get { return this["entityAssemblies"] as EntityAssemblyCollection; }
}
[ConfigurationProperty("autoTransactions")]
public AutoTransactionCollection AutoTransactions
{
get { return this["autoTransactions"] as AutoTransactionCollection; }
}
internal XmlDocument ConfigXml
{
get { return _configXml; }
set { _configXml = value; }
}
internal string MappingFilePath
{
get { return _mappingFilePath; }
set { _mappingFilePath = value; }
}
#endregion
}
}
|
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.
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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.