Core/SqlDataAccess.cs
/// <summary>
/// Brings a SqlCommand object to be able to add some parameters in it. After you send this to Execute method.
/// </summary>
/// <param name="sql"></param>
/// <returns></returns>
Brings a SqlCommand object to be able to add some parameters in it. After you send this to Execute method.
Brings a SqlCommand object to be able to add some parameters in it . After you send this to Execute method .
public SqlCommand GetCommand(string sql)
    {   
        SqlConnection conn = new SqlConnection(ConnectionString);
        SqlCommand sqlCmd = new SqlCommand(sql, conn);
        return sqlCmd;
    }
public SqlCommand GetCommand ( string sql ) { SqlConnection conn = new SqlConnection ( ConnectionString ) ; SqlCommand sqlCmd = new SqlCommand ( sql , conn ) ; return sqlCmd ; }
Brings a SqlCommand object to be able to add some parameters in it.
Brings a SqlCommand object to be able to add some parameters in it .
None
sql
string
None