修改为自动注册,未测试
Stone authored at 2012-05-19 17:48:09
614.00 B
X
using NewLife.CommonEntity.Web;
using NewLife.Model;

namespace NewLife.CommonEntity
{
    class CommonService : ServiceContainer<CommonService>
    {
        static CommonService()
        {
            Container
                //.Register<IManageProvider, ManageProvider>()
                //.Register<ICommonManageProvider, CommonManageProvider>()
                .AutoRegister(typeof(IManageProvider), typeof(CommonManageProvider), typeof(ManageProvider))
                .AutoRegister<IEntityForm, EntityForm2>()
                .AutoRegister<IManagePage, ManagePage>();
        }
    }
}