This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Ninject; | |
| using Ninject.Web.Mvc; | |
| using System.Reflection; | |
| using NHibernate; | |
| using NHibernate.Context; | |
| using NHibernate.Cfg; | |
| using System.IO; | |
| using HibernatingRhinos.Profiler.Appender.NHibernate; | |
| namespace Concepts.Web |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Concepts.Web.Controllers | |
| { | |
| public class HomeController : Controller | |
| { | |
| private IPersonRepository _repo; | |
| public HomeController(IPersonRepository repository) | |
| { | |
| _repo = repository; | |
| } | |
| [TransactionFilter] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MvcApplication : NinjectHttpApplication | |
| { | |
| public static DB db = new DB("server=(local);password=;options=none;"); | |
| private static void openSession() | |
| { | |
| if (File.Exists(@"c:\temp\db\iSay.eq")) { | |
| db.OpenDatabase("iSay"); | |
| db.RegisterType(typeof(iSay.Story)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| namespace Core | |
| { | |
| public class BladeServer | |
| { | |
| public string Hostname { get; set;} | |
| public string ServerRole { get; set; } | |
| public string IPAddress { get; set; } | |
| public string OS { get; set; } | |
| public BladeChassis BladeChassis { get; set; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| namespace Web.Infrastructure | |
| { | |
| public interface ISession:IDisposable { | |
| void CommitChanges(); | |
| Db4objects.Db4o.IObjectContainer Container { get; } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Db4objects.Db4o; | |
| using System.Linq; | |
| using Db4objects.Db4o.Linq; | |
| using System.Web; | |
| using System.IO; | |
| using System; | |
| using System.Collections.Generic; | |
| namespace Web.Infrastructure | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Db4objects.Db4o; | |
| using System.Linq; | |
| using Db4objects.Db4o.Linq; | |
| using System.Web; | |
| using System.IO; | |
| using System; | |
| using System.Collections.Generic; | |
| namespace Web.Infrastructure { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using NUnit.Framework; | |
| using Web.Infrastructure; | |
| using Core; | |
| namespace Test | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Castle; | |
| using Castle.MicroKernel; | |
| using System.Web.Mvc; | |
| using System.Web.Routing; | |
| namespace CastleDemo.Plumbing | |
| { | |
| public class WindsorControllerFactory : DefaultControllerFactory | |
| { | |
| private readonly IKernel kernel; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Web; | |
| using Castle.MicroKernel.Registration; | |
| using Castle.Windsor; | |
| using Castle.MicroKernel.SubSystems.Configuration; | |
| using System.Web.Mvc; | |
| using CastleDemo.Controllers; |