예제 #1
0
파일: Program.cs 프로젝트: DanielTejeda/Ace
    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();
    }
예제 #2
0
        public int CatCount(Cat cat)
        {
            var res = _connection.ExecuteScalar <int>($"select count from cc where category='{cat}'");

            return(res);
        }
예제 #3
0
        public int Fcount(string f, Cat cat)
        {
            var res = _connection.ExecuteScalar <int>($"select count from fc where feature='{f}' and category='{cat}'");

            return(res);
        }