예제 #1
0
        /// <summary>
        /// Parsers a command provider by generating the underlying command and disposing it
        /// afterwards.
        /// </summary>
        public virtual string OnParseCoreCommandProvider(ICoreCommandProvider obj, IParameterCollection pc, bool nulls)
        {
            var cmd = obj.GenerateCoreCommand();

            if (cmd == null)
            {
                return(string.Empty);
            }

            var str = OnParseCommand(cmd, pc, nulls);

            cmd.Dispose();
            return(str);
        }
예제 #2
0
		/// <summary>
		/// Parsers a command provider by generating the underlying command and disposing it
		/// afterwards.
		/// </summary>
		public virtual string OnParseCoreCommandProvider(ICoreCommandProvider obj, IParameterCollection pc, bool nulls)
		{
			var cmd = obj.GenerateCoreCommand();
			if (cmd == null) return string.Empty;

			var str = OnParseCommand(cmd, pc, nulls);
			cmd.Dispose();
			return str;
		}