select * from LoginTable where RoleId in ('1','2','3')
public static DataSet GetLoginInfo(string[] roleid) { SqlConnection conn = DBConnection.GetConnection(); SqlCommand cmd = new SqlCommand("GetLoginInfo", conn); cmd.CommandType = CommandType.StoredProcedure; cmd.Parameters.Add(new SqlParameter("@roleid", SqlDbType.VarChar)).Value = roleid; SqlDataAdapter da = new SqlDataAdapter(cmd); DataSet ds = new DataSet(); try { conn.Open(); da.Fill(ds); } catch (Exception) { throw; } finally { conn.Close(); cmd.Connection = null; cmd.Dispose(); } return ds; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)