• <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • LINQ 實現常見SQL查詢

    發表于:2008-04-17來源:作者:點擊數: 標簽:LINQ
     1.Top 查詢----skip(index).Take(count)

      var Results = from dt in ctx.Customers.Skip(0).Take(10)
      select new
      ...{
      dt.CustomerID,
      dt.CompanyName,
      dt.City
      };

      2.Like 查詢----startwith()

      from dt in ctx.Customers
      where dt.ID.Startwith('A')

      3.In查詢----Contain()

      string[] s = ...{ "ivan","aaa","aaaa"};
      var Results = from dt in ctx.Customers.Skip(0).Take(10)
      where s.Contains(dt.CustomerID)
      select new
      ...{
      dt.CustomerID,
      dt.CompanyName,
      dt.City
      };

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>