pur*_*t66 0 .net c# sql linq db4o
我在C#中有这个LINQ查询来查询db4o数据库.
IEnumerable<internetRecord> searchResult = from internetRecord ie in database
where ie.GSrecordID.Contains(txtSearchString.Text)
select ie;
Run Code Online (Sandbox Code Playgroud)
SQL中的等效查询是什么?(需要用于比较目的)我过去没有使用过SQL,并且在使用LINQ一段时间后看着它看起来很混乱.
SELECT *
FROM MyTable
WHERE GSRecordID LIKE '%txtSearchString%'
Run Code Online (Sandbox Code Playgroud)