I have my code like this
private void btnStartAnalysis_Click(object sender, EventArgs e)
{
//Checks for the selectedItem in the cmbOpearions dropdown and make call to appropriate functions.
if((string) (cmbOperations.SelectedItem) == "PrimaryKeyTables")
{
//This is the function call for the primary key checking in DB
GetPrimaryKeyTable();
}
//Checks for the selectedItem in the cmbOpearions dropdown and make call to appropriate functions.
if((string) (cmbOperations.SelectedItem) == "NonPrimaryKeyTables")
{
//This is the function call for the nonPrimary key checking in DB
GetNonPrimaryKeyTables();
}
//Checks for the selectedItem in the cmbOpearions dropdown and make call to appropriate functions.
if((string) (cmbOperations.SelectedItem) == "ForeignKeyTables")
{
//This is the function call for the nonPrimary key checking in DB
GetForeignKeyTables();
}
//Checks for the selectedItem in the cmbOpearions dropdown and make call to appropriate functions.
if((string) (cmbOperations.SelectedItem) == "NonForeignKeyTables")
{
//This is the function call for the nonPrimary key checking in DB
GetNonForeignKeyTables();
}
if((string) (cmbOperations.SelectedItem) == "UPPERCASEDTables")
{
//This is the function call for the nonPrimary key checking in DB
GetTablesWithUpperCaseName();
}
if((string) (cmbOperations.SelectedItem) == "lowercasedtables")
{
//This is the function call for the nonPrimary key checking in DB
GetTablesWithLowerCaseName();
}
}
But here using (string) makes problem in case sensitiveness.So I want to use string.comapare in place of (string).
Can anybody give me any hint how to use it.