示例#1
0
        public static void RegisterContainer()
        {
            Container = new IoC.Container();

            Container.Register <IUserRepo, UserRepo>();
            Container.Register <IProductRepo, ProductRepo>(LifeCycleType.Singleton);
        }