sing (var context = new TestDBEntities())
{
    var query 
= from p in context.Parents
                
where p.Name == "Lingzhi"
                select p;

    ObjectQuery
<Parent> parents = query as ObjectQuery<Parent>;
    
if (parents != null)
    {
        
string sql = parents.ToTraceString();
    }
}

相关文章:

  • 2022-12-23
  • 2021-05-28
  • 2021-07-02
  • 2022-12-23
  • 2022-01-09
  • 2021-10-02
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-07
  • 2021-12-11
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2021-07-15
相关资源
相似解决方案