CinderellaMGS.SQL_Queries.setPairing C# (CSharp) Method

setPairing() public method

Pairs a godmother and Cinderella.
public setPairing ( string godmotherID, string cinderellaID ) : void
godmotherID string ID of the Godmother
cinderellaID string ID of the Cinderella
return void
        public void setPairing(string godmotherID, string cinderellaID)
        {
            string query = "INSERT INTO [CinderellaFGPairing]([cinderellaID], [fairyGodmotherID]) VALUES(";
            query += cinderellaID + "," + godmotherID + ")";

            database.ExecuteQuery(query);
        }