static DalFactory() { //Define Ninject Dependency Injection Bindings Kernel.Bind <IGeneralCodeRepository>().To <GeneralCodeRepository>(); Kernel.Bind <ISubCodeRepository>().To <SubCodeRepository>(); Kernel.Bind <IOpportunityRepository>().To <OpportunityRepository>(); Kernel.Bind <IindividualDetailsRepository>().To <IndividualDetailsRepository>(); Kernel.Bind <IEventRepository>().To <EventRepository>(); Kernel.Bind <IJobRepository>().To <JobRepository>(); Kernel.Bind <ITrainingRepository>().To <TrainingRepository>(); Kernel.Bind <IDataServiceRepository>().To <DataServiceRepository>(); Kernel.Bind <IOrganizationContactInfoRepository>().To <OrganizationContactInfoRepository>(); Kernel.Bind <IOrganizationRepository>().To <OrganizationRepository>(); Kernel.Bind <IRequestLogRepository>().To <RequestLogRepository>(); Kernel.Bind <IPortalUsersRepository>().To <PortalUsersRepository>(); Kernel.Bind <INewsRepository>().To <NewsRepository>(); Kernel.Bind <IConfigCenterRepository>().To <ConfigCenterRepository>(); Kernel.Bind <IIndividualRepository>().To <IndividualRepository>(); Kernel.Bind <IIndRepository>().To <IndRepository>(); Kernel.Bind <IOrgRepository>().To <OrgRepository>(); Kernel.Bind <IChatLogRepository>().To <ChatLogRepository>(); Kernel.Bind <IConceptNonFormalTrainingRepository>().To <ConceptNonFormalTrainingRepository>(); Kernel.Bind <ILmisReportsRepository>().To <LmisReportsRepository>(); Kernel.Bind <IObsceneWordsRepository>().To <ObsceneWordsRepository>(); Kernel.Bind <IListOfEmailsRepository>().To <ListOfEmailsRepository>(); Kernel.Bind <IHelpfulLinkRepository>().To <HelpfulLinkRepository>(); Kernel.Bind <IQualificationsRepository>().To <QualificationsRepository>(); Kernel.Bind <IOfficeRepository>().To <OfficeRepository>(); Kernel.Bind <IUnionRepository>().To <UnionRepository>(); Kernel.Bind <IFaqRepository>().To <FaqRepository>(); Kernel.Bind <IConceptsDefinitionsRepository>().To <ConceptsDefinitionsRepository>(); Kernel.Bind <IEmployersTrainingProvidersRepository>().To <EmployersTrainingProvidersRepository>(); Kernel.Bind <IRecruitmentAgenciesRepository>().To <RecruitmentAgenciesRepository>(); //Serve BLL Objects as Singletons GeneralCodeRepo = Kernel.Get <IGeneralCodeRepository>(); SubCodeRepo = Kernel.Get <ISubCodeRepository>(); OpportunityRepo = Kernel.Get <IOpportunityRepository>(); IndividualDetailsRepo = Kernel.Get <IindividualDetailsRepository>(); EventRepo = Kernel.Get <IEventRepository>(); JobRepo = Kernel.Get <IJobRepository>(); TrainingRepo = Kernel.Get <ITrainingRepository>(); DataServiceRepo = Kernel.Get <IDataServiceRepository>(); OrganizationContactInfoRepo = Kernel.Get <IOrganizationContactInfoRepository>(); OrganizationRepo = Kernel.Get <IOrganizationRepository>(); RequestLogRepo = Kernel.Get <IRequestLogRepository>(); PortalUsersRepo = Kernel.Get <IPortalUsersRepository>(); NewsRepo = Kernel.Get <INewsRepository>(); IndividualRepo = Kernel.Get <IIndividualRepository>(); ConfigRepo = Kernel.Get <IConfigCenterRepository>(); IndividualRepo = Kernel.Get <IIndividualRepository>(); IndRepo = Kernel.Get <IIndRepository>(); OrgRepo = Kernel.Get <IOrgRepository>(); ChatLogRepo = Kernel.Get <IChatLogRepository>(); ConceptNonFormalTrainingRepo = Kernel.Get <IConceptNonFormalTrainingRepository>(); LmisReportsRepo = Kernel.Get <ILmisReportsRepository>(); ObsceneWordsRepo = Kernel.Get <IObsceneWordsRepository>(); ListOfEmailsRepo = Kernel.Get <IListOfEmailsRepository>(); HelpfulLinkRepo = Kernel.Get <IHelpfulLinkRepository>(); QualificationsRepo = Kernel.Get <IQualificationsRepository>(); OfficeRepo = Kernel.Get <IOfficeRepository>(); UnionRepo = Kernel.Get <IUnionRepository>(); FaqRepo = Kernel.Get <IFaqRepository>(); ConceptsDefinitionsRepo = Kernel.Get <IConceptsDefinitionsRepository>(); EmployersTrainingProvidersRepo = Kernel.Get <IEmployersTrainingProvidersRepository>(); RecruitmentAgenciesRepo = Kernel.Get <IRecruitmentAgenciesRepository>(); }