Popular Posts

Wednesday, April 29, 2015

Saturday, April 25, 2015

Asp.net 5 features

http://stephenwalther.com/archive/2015/02/24/top-10-changes-in-asp-net-5-and-mvc-6

Friday, April 24, 2015

NCalc - Mathematical Expressions Evaluator for .NET - Home

NCalc - Mathematical Expressions Evaluator for .NET - Home



calculate mathematical expression - eval string expression in c#

Web Forms - AUTOFAC DEPENCEY INJECTION

Web Forms — Autofac 3.3 documentation



This worked:



 public class Global : HttpApplication, IContainerProviderAccessor

    {



        // Provider that holds the application container.

        static IContainerProvider _containerProvider;



        // Instance property that will be used by Autofac HttpModules

        // to resolve and inject dependencies.

        public IContainerProvider ContainerProvider

        {

            get { return _containerProvider; }

        }



        void Application_Start(object sender, EventArgs e)

        {

            // Build up your application container and register your dependencies.

            var builder = new ContainerBuilder();

            var assemblies = new List<Assembly>();

            assemblies.Add(Assembly.Load("Questionnaire.RepositoriesInterfaces"));

            assemblies.Add(Assembly.Load("Questionnaire.Data"));

            assemblies.Add(Assembly.Load("Questionnaire.Business"));

            builder.RegisterAssemblyTypes(assemblies.ToArray()).AsImplementedInterfaces();



            _containerProvider = new ContainerProvider(builder.Build());



            // Code that runs on application startup

            RouteConfig.RegisterRoutes(RouteTable.Routes);

            BundleConfig.RegisterBundles(BundleTable.Bundles);

        }

Wednesday, April 8, 2015

Transaction scope

http://www.codeproject.com/Articles/690136/All-About-TransactionScope

Thursday, April 2, 2015