/// <summary> /// Allows compilation of the ToObject and ToCollection materializer. /// </summary> /// <typeparam name="TCommand">The type of the command.</typeparam> /// <typeparam name="TParameter">The type of the parameter.</typeparam> /// <param name="commandBuilder">The command builder.</param> /// <returns></returns> public static CompiledMultipleTable <TCommand, TParameter> Compile <TCommand, TParameter>(this MultipleTableDbCommandBuilder <TCommand, TParameter> commandBuilder) where TCommand : DbCommand where TParameter : DbParameter { return(new CompiledMultipleTable <TCommand, TParameter>(commandBuilder)); }
/// <summary> /// Initializes a new instance of the <see cref="CompiledMultipleTable{TCommand, TParameter}"/> struct. /// </summary> /// <param name="commandBuilder">The command builder.</param> public CompiledMultipleTable(MultipleTableDbCommandBuilder <TCommand, TParameter> commandBuilder) { m_CommandBuilder = commandBuilder; }