public decimal GetEncounterChance(int locationID) { object[] data = context.GetEncounterChance(locationID); return(Convert.ToDecimal(data[0])); }