예제 #1
0
        public NktDbModuleToNktModuleAdapter(NktDbModule anAdaptee)
        {
            _anAdaptee = anAdaptee;
            var functions = NktDbObjectToExportedFunctionAdapter.From(anAdaptee.DbFunctions());

            _exportedFunctions = new CustomNktExportedFunctionsEnum(functions);
        }
예제 #2
0
        public static NktExportedFunction[] From(NktDbObjectsEnum dbFunctions)
        {
            var adapters = new NktExportedFunction[dbFunctions.Count];

            for (var functionIndex = 0; functionIndex < dbFunctions.Count; functionIndex++)
            {
                var aDbFunction = dbFunctions.GetAt(functionIndex);
                adapters[functionIndex] = new NktDbObjectToExportedFunctionAdapter(aDbFunction);
            }

            return(adapters);
        }
        public static NktExportedFunction[] From(NktDbObjectsEnum dbFunctions)
        {
            var adapters = new NktExportedFunction[dbFunctions.Count];

            for (var functionIndex = 0; functionIndex < dbFunctions.Count; functionIndex++)
            {
                var aDbFunction = dbFunctions.GetAt(functionIndex);
                adapters[functionIndex] = new NktDbObjectToExportedFunctionAdapter(aDbFunction);
            }

            return adapters;
        }