Browse by Tags

All Tags » linq (RSS)

Mocking LINQ to SQL [Continued…] using RLINQ by Mehfuz's WebLog

After making the post on mocking LINQ to SQL, this morning i was having a chat with Stephen forte and come to know that telerik a has product named RLINQ. RLINQ is built on top of OpenAccess and it supports variety of databases. Being curious, i thought...

Unit testing LINQ to SQL by Mehfuz's WebLog

Unit testing LINQ to SQL repositories can be very challenging. Unit testing such requires faking hard to mock classes and requires simulation to return your custom data for a particular LINQ statement. In this post, i will show how you can mock your LINQ...
Filed under: , , ,

Finally! Entity Framework working in fully disconnected N-tier web app by Omar AL Zabir on things you don't find easily

Entity Framework was supposed to solve the problem of Linq to SQL, which requires endless hacks to make it work in n-tier world. Not only did Entity Framework solve none of the L2S problems, but also it made it even more difficult to use and hack it for...

Simple way to cache objects and collections for greater performance and scalability by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Caching of frequently used data greatly increases the scalability of your application since you can avoid repeated queries on database, file system or to webservices. When objects are cached, it can be retrieved from the cache which is lot faster and...
Filed under: , ,

Introducing LINQ to M by Mehfuz's WebLog

Now , it happens that you go to McDonalds website and order an item for you. It could happen that price of the menu changed or new one comes to the menu. Now, generally it can happen that admin can go though wizard and loads of textboxes or dropdowns...
Filed under: , ,

Extending your existing API or legacy data classes to support LINQ by Mehfuz's WebLog

While developing LinqExtender, i have come across various scenarios that people don’t want to extent any query class or even implement any interface. Also, it is almost absurd when they have to add new extender specific attributes to their entity class...
Filed under: , , ,

Web 2.0 AJAX Portal using jQuery, ASP.NET 3.5, Silverlight, Linq to SQL, WF and Unity by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Dropthings – my open source Web 2.0 Ajax Portal has gone through a technology overhauling. Previously it was built using ASP.NET AJAX, a little bit of Workflow Foundation and Linq to SQL. Now Dropthings boasts full jQuery front-end combined with ASP.NET...

Memory Leak with delegates and workflow foundation by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Recently after Load Testing my open source project Dropthings, I encountered a lot of memory leak. I found lots of Workflow Instances and Linq Entities were left in memory and never collected. After profiling the web application using .NET Memory Profiler...
Filed under: , , ,

Linq to SQL solve Transaction deadlock and Query timeout problem using uncommitted reads by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

When your database tables start accumulating thousands of rows and many users start working on the same table concurrently, SELECT queries on the tables start producing lock contentions and transaction deadlocks. This is a common problem in any high volume...
Filed under: , , ,

Create custom LINQ providers fluently by Mehfuz's WebLog

Just released LinqExtender 2.0. Over previous release , it contains generally bugs fixes. Overall, I have focused on striping out complexity as much as possible to keep you focused on your business logic. You can see the full list of features in the documentation...
Filed under: , ,

Linq to SQL: Delete an entity using Primary Key only by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Linq to Sql does not come with a function like .Delete(ID) which allows you to delete an entity using it’s primary key. You have to first get the object that you want to delete and then call .DeleteOnSubmit(obj) to queue it for delete. Then you...
Filed under: , ,

Solving common problems with Compiled Queries in Linq to Sql for high demand ASP.NET websites by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

If you are using Linq to SQL, instead of writing regular Linq Queries, you should be using Compiled Queries. if you are building an ASP.NET web application that’s going to get thousands of hits per hour, the execution overhead of Linq queries is...
Filed under: , ,

LinqExtender 1.4.2 - Supporting Complex type arguments by Mehfuz's WebLog

I just made a quick update to the existing release of LinqExtender. I recently found a bug while building a feature for FlickrXplorer is that if you use constant type query with orderby clause it does pretty well, but it simply does not do well with complex...
Filed under: , ,
Powered by Community Server (Non-Commercial Edition), by Telligent Systems