コード例 #1
0
        public static void updateImportDefinition(ICswResources CswResources, CswWebSvcReturn Ret, CswNbtImportWcf.DefinitionUpdateRow[] Params)
        {
            //NOTE: if we decide to use definitions other than CAF in the future, we're going to need a way to discern what definition we're working with
            CswNbtSchemaUpdateImportMgr ImportUpdater = new CswNbtSchemaUpdateImportMgr(new CswNbtSchemaModTrnsctn((CswNbtResources)CswResources), "CAF", ImporterSetUpMode: CswEnumSetupMode.NbtWeb);

            foreach (CswNbtImportWcf.DefinitionUpdateRow Row in Params)
            {
                ImportUpdater.updateDefinitionElementByPK(Row.definitionType, Row.editMode, Row.row);
            }

            ImportUpdater.finalize();
        }