This article is a mirror article of machine translation, please click here to jump to the original article.

View: 25096|Reply: 1

[Source] deduplicate data and return the collection

[Copy link]
Posted on 6/3/2015 10:49:05 AM | | |
  1. /// <summary>
  2. /// 查询语言
  3. /// </summary>
  4. /// <returns></returns>
  5. public static List<string> GetYuYan() {
  6. Entity.DataLinqDataContext db = new Entity.DataLinqDataContext();
  7. string sql = string.Format("");
  8. var a = (from b in db.code select b.prolan).Distinct().ToList();
  9. List<string> list = a;
  10. return list;
  11. }
Copy code

See for yourself without much explanation




Previous:The crawler just written in Java now only has the ability to download images (depth 1) and will continue to improve
Next:Hey, I don't use a mouse, see what my mouse looks like
Posted on 12/28/2017 3:40:11 PM |
It seems to be information in SQL language
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com