Catel.ExtensionsEntityFrameworkModule.Initialize C# (CSharp) Method

Initialize() public method

Initializes the specified service locator.
public Initialize ( IServiceLocator serviceLocator ) : void
serviceLocator IServiceLocator The service locator.
return void
        public void Initialize(IServiceLocator serviceLocator)
        {
            Argument.IsNotNull("serviceLocator", serviceLocator);

            serviceLocator.RegisterTypeIfNotYetRegistered<IConnectionStringManager, ConnectionStringManager>();
            serviceLocator.RegisterTypeIfNotYetRegistered<IContextFactory, ContextFactory>();
        }
ExtensionsEntityFrameworkModule