示例#1
0
        static void Main(string[] args)
        {
            //string connectionString = ConfigurationManager.ConnectionStrings["PhoneTariffConnectionString"].ConnectionString;
            //IDatabase database = new Database(connectionString);
            //ITariffDao tariffDao = new TariffDao(database);

            IDatabase  database  = DALFactory.CreateDatabase();
            ITariffDao tariffDao = DALFactory.CreateTariffDao(database);

            var tariff = tariffDao.FindById("A1");

            Console.WriteLine(tariff.BasicFee);
            Console.ReadKey();
        }