<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>LINQ2SQL on Bryan Avery</title><link>https://bryanavery.co.uk/categories/linq2sql/</link><description>Recent content in LINQ2SQL on Bryan Avery</description><generator>Hugo -- gohugo.io</generator><language>en-GB</language><copyright>© 2026 Bryan Avery.</copyright><lastBuildDate>Tue, 31 Dec 2013 11:59:00 +0000</lastBuildDate><atom:link href="https://bryanavery.co.uk/categories/linq2sql/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Rank your search results with multiple search terms using LINQ and EntityFramework</title><link>https://bryanavery.co.uk/how-to-rank-your-search-results-with-multiple-search-terms-using-linq-and-entityframework/</link><pubDate>Tue, 31 Dec 2013 11:59:00 +0000</pubDate><guid>https://bryanavery.co.uk/how-to-rank-your-search-results-with-multiple-search-terms-using-linq-and-entityframework/</guid><description>&lt;p&gt;I have always used a ranked search criteria, it’s the only true way to get good results back from a data set.  But I’ve been doing my ranking within C# code.  But this got all the data from the data source and then ranked the results.  This is very poor on performance, as we should only be returning back the results for the page size we require.&lt;/p&gt;</description></item><item><title>ILinqRepository at last</title><link>https://bryanavery.co.uk/ilinqrepository-at-last/</link><pubDate>Tue, 17 Jan 2012 12:03:00 +0000</pubDate><guid>https://bryanavery.co.uk/ilinqrepository-at-last/</guid><description>&lt;p&gt;LINQ to SQL is a very easy to use and very powerful tool for many things when dealing with SQL.  But the time has come that I need to wrap it all up and use an iRepository pattern.  I’ve Googled for the IRepository and found a few useful references but none that will complete my picture.  How ever I did get some good ideas when looking around othe rimplementation of the IRepository pattern that others had implmented.&lt;/p&gt;</description></item><item><title>Transaction scoping within Linq to Sql</title><link>https://bryanavery.co.uk/transaction-scoping-within-linq-to-sql/</link><pubDate>Mon, 16 Jan 2012 14:24:00 +0000</pubDate><guid>https://bryanavery.co.uk/transaction-scoping-within-linq-to-sql/</guid><description>&lt;p&gt;If you are like me and us are using an IRepository for Linq to SQL you’ll probably at some point need to be able to generate a Transaction.&lt;/p&gt;&#10;&lt;p&gt;As the IRepository saves records as it goes and not on a SubmitChanges() we’re going to have to use the &lt;a href="http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope/" target="_blank"&gt;Microsoft TransactionScope Class&lt;/a&gt;, from the &lt;span&gt;System.Transactions&lt;/span&gt; (in System.Transactions.dll), which makes a code block transactional.&lt;/p&gt;</description></item><item><title>Using LINQ to SQL</title><link>https://bryanavery.co.uk/using-linq-to-sql/</link><pubDate>Mon, 09 Jul 2007 14:44:00 +0000</pubDate><guid>https://bryanavery.co.uk/using-linq-to-sql/</guid><description>&lt;p&gt;Found these great articles on LINQ to SQL, well worth reading as it the way to go forwards&lt;/p&gt;&#10;&lt;div class="post-body entry-content"&gt;&#10;&lt;p&gt;&#10;&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1/"&gt;&lt;font color="#99aadd"&gt;Using LINQ to SQL (Part 1)&lt;/font&gt;&lt;/a&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;&#10;&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/06/29/linq-to-sql-part-3-querying-our-database/"&gt;&lt;font color="#99aadd"&gt;LINQ to SQL (Part 2 – Defining our Data Model Classes) &lt;/font&gt;&lt;/a&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="http://weblogs.asp.net/scottgu/archive/2007/06/29/linq-to-sql-part-3-querying-our-database/"&gt;&lt;font color="#99aadd"&gt;LINQ to SQL (Part 3 – Querying our Database) &lt;/font&gt;&lt;/a&gt;&#10;&lt;/p&gt;&lt;/div&gt;</description></item></channel></rss>