SqlScripter.Core/src/Data/SqlCommon.cs
/// <summary>
/// Prepares a <see cref="SqlDataAdapter"/> with given command as SelectCommand.
/// </summary>
/// <param name="selectCommand">A SelectCommand</param>
/// <returns>DataSet filled with data retuned by given SqlCommand</returns>
/// <exception cref="SqlCommonException">If command execution results in exception, a detailed information about error is summarised and exception is thrown</exception>
Prepares a  with given command as SelectCommand.
Prepares a with given command as SelectCommand .
public static SqlDataAdapter BuildAdapter(SqlCommand selectCommand) {
            SqlDataAdapter dataAdapter = new SqlDataAdapter(selectCommand);
            SqlCommandBuilder commandBuilder = new SqlCommandBuilder();
            commandBuilder.DataAdapter = dataAdapter;
            return dataAdapter;
        }
public static SqlDataAdapter BuildAdapter ( SqlCommand selectCommand ) { SqlDataAdapter dataAdapter = new SqlDataAdapter ( selectCommand ) ; SqlCommandBuilder commandBuilder = new SqlCommandBuilder ( ) ; commandBuilder . DataAdapter = dataAdapter ; return dataAdapter ; }
Prepares a  with given command as SelectCommand.
Prepares a with given command as SelectCommand .
DataSet filled with data retuned by given SqlCommand
DataSet filled with data retuned by given SqlCommand
If command execution results in exception, a detailed information about error is summarised and exception is thrown
If command execution results in exception a detailed information about error is summarised and exception is thrown
selectCommand
SqlCommand
None