コード例 #1
0
        public DataService(
            ClientQueryDeserializer queryDeserializer,
            IChangeSetApplier changeSetApplier,
            ChangeSetDeserializer changeSetDeserializer,
            IUnitOfWorkFactory unitOfWorkFactory,
            ISessionFactory factory,
            TypedAutoCardStructureDataProvider <CstReqCustoms> cstReqCustomsStructureDataProvider,
            TransportDocumentStructureDataProvider transportDocumentStructureDataProvider,
            TransportContractStructureDataProvider transportContractStructureDataProvider,
            CstReqCustomsPosDataProvider cstReqCustomsPosDataProvider,
            CstReqCustoms2WBStructureDataProvider cstReqCustoms2WbStructureDataProvider
            )
            : base(queryDeserializer, changeSetDeserializer, changeSetApplier, unitOfWorkFactory)
        {
            _factory = factory;
            StructureDataProviders.Add(cstReqCustomsStructureDataProvider);
            StructureDataProviders.Add(transportDocumentStructureDataProvider);
            StructureDataProviders.Add(transportContractStructureDataProvider);
            StructureDataProviders.Add(cstReqCustomsPosDataProvider);
            StructureDataProviders.Add(cstReqCustoms2WbStructureDataProvider);

            CommittableBindingsProvider.Register(cstReqCustomsStructureDataProvider);
            CommittableBindingsProvider.Register(transportDocumentStructureDataProvider);
            CommittableBindingsProvider.Register(transportContractStructureDataProvider);
        }
コード例 #2
0
ファイル: DataService.cs プロジェクト: zaharvsb52/My.MLC.Wms
        public DataService(
            ClientQueryDeserializer queryDeserializer,
            IChangeSetApplier changeSetApplier,
            ChangeSetDeserializer changeSetDeserializer,
            IUnitOfWorkFactory unitOfWorkFactory,
            TypedAutoCardStructureDataProvider <SchJob> jobStructureDataProvider,
            TypedAutoGridStructureDataProvider <SchJobParam> jobParamListStructureDataProvider,
            TypedAutoGridStructureDataProvider <SchCronTrigger> cronTriggerStructureDataProvider,
            TypedAutoGridStructureDataProvider <SchSimpleTrigger> simpleTriggerStructureDataProvider
            )
            : base(queryDeserializer, changeSetDeserializer, changeSetApplier, unitOfWorkFactory)
        {
            StructureDataProviders.Add(jobStructureDataProvider);
            StructureDataProviders.Add(jobParamListStructureDataProvider);
            StructureDataProviders.Add(cronTriggerStructureDataProvider);
            StructureDataProviders.Add(simpleTriggerStructureDataProvider);

            CommittableBindingsProvider.Register(jobStructureDataProvider);
            CommittableBindingsProvider.Register(jobParamListStructureDataProvider);
            CommittableBindingsProvider.Register(cronTriggerStructureDataProvider);
            CommittableBindingsProvider.Register(simpleTriggerStructureDataProvider);
        }