Separation of Concerns - ntierontime/Log4Net GitHub Wiki

nTier On Time is using a set of light-weight IoCContainer, IoCContainerWrapper and Singleton classes in Framework project for Dependency Injection for Separation of Concerns.

IoC/DI is used in Common Business Logic Layer(Log4Net.CommonBLLIoC project), and UI Layer e.g. Asp.Net Mvc project(Log4Net.AspNetMvc40Rasor), Silverlight 5(Log4Net.SL5App), Windows App Store(Log4Net.WinStoreApp), Windows Phone (Log4Net.WP71App) and WPF 4(Log4Net.WPF4App). When an application starting or initializing:

  • In Business Logic Layer, IoC/DI is used to switch data access layer provider, e.g. Linq to Sql(Log4Net.LinqToSqlContexts project) and Entity Framework(Log4Net.EntityFrameworkDAL project) in generated nTier On Time Solution.
  • In UI Layer, IoC/DI is used to switch Business Logic Layer, e.g. Common Business Logic Layer(Log4Net.CommonBLL project) and Wcf Client(Log4Net.WcfClientBLL project).