Пример #1
0
        public override void Initialize()
        {
            m_FunctionArguments =
                Execute(FunctionArgumentCommandText)
                .Select(o => FunctionArgument.CreateFrom(SqlHelper, o))
                .ToDictionary(x => new FunctionArgumentKey(x.FunctionName, x.ArgumentPosition));
            var functionArguments = m_FunctionArguments.Values.ToLookup(x => x.FunctionName);

            m_FunctionsByName =
                Execute(FunctionCommandText)
                .Select(o => Function.CreateFrom(SqlHelper, o, functionArguments))
                .ToDictionary(x => x.FunctionNameKey);
        }