static void Main() { var cat = new Cat(); var dog = new Dog(); Console.WriteLine("Cat goes " + cat.MakeNoise()); Console.WriteLine("Dog goes " + dog.MakeNoise()); Console.ReadLine(); }
public int CatCount(Cat cat) { var res = _connection.ExecuteScalar <int>($"select count from cc where category='{cat}'"); return(res); }
public int Fcount(string f, Cat cat) { var res = _connection.ExecuteScalar <int>($"select count from fc where feature='{f}' and category='{cat}'"); return(res); }