Exemple #1
0
        async Task <IEnumerable <CityName> > ICityNameService.SelectAsync(string name)
        {
            var    result = new List <CityName>();
            string sql    = "select id,CName from dbo.cityname where CName=@name";
            var    paras  = new Dictionary <string, object>()
            {
                { "name", name }
            };

            return(await _baseDao.Query <CityName>(sql, paras));
        }