Browse by Tags

All Tags » .net (RSS)

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...

Do not use “using” in WCF Client by Omar AL Zabir on things you don't find easily

You know that any IDisposable object must be disposed using using. So, you have been using using to wrap WCF service’s ChannelFactory and Clients like this: using(var client = new SomeClient()) {. ..} Or, if you are doing it the hard and slow way (without...
Filed under: , ,

New and Improved Dropthings – the Open Source Web 2.0 AJAX portal by Omar AL Zabir on hard to find tech stuffs

I have made some significant improvements and bug fixes on the latest 2.5.4 release of Dropthings, my open source Web 2.0-style AJAX Portal built on ASP.NET 3.5, Linq to SQL, Linq to Xml, Silverlight, Enterprise Library, Unity, Velocity, and what not...

C# with keyword equivalent by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

There’s no with keyword in C#, like Visual Basic. So you end up writing code like this: this . StatusProgressBar . IsIndeterminate = false ; this . StatusProgressBar . Visibility = Visibility . Visible ; this . StatusProgressBar . Minimum = 0 ; this Read...
Filed under: , ,

Do Unit Test and Integration Test from same test code using Conditional Compilation by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

You usually write unit test and integration test code separately using different technologies. For example, for unit test, you use some mocking framework like Moq to do the mocking. For integration test, you do not use any mocking, just some test classes...
Filed under: , , , ,

Is your computer running slow, battery running out quickly? by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

If your computer is running hot or battery running out quickly then it is most likely due to some application or process consuming high CPU or memory. If you keep running applications for a long time, for example, Outlook, then it continues to grow in...
Filed under: , , ,

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: , ,

MSDN Day @ Dhaka by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Venue. IDB Auditorium E/8-A Rokeya Sharani, Sher-e-Bangla Nagar, Agargaon, Dhaka 1207 Saturday June 20th 9:00 AM to 6:00 PM Microsoft Community in Bangladesh proudly presents Microsoft Day @ Dhaka. This is a special day dedicated to all Microsoft technology...
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: , , ,

Optimize ASP.NET Membership Stored Procedures for greater speed and scalability by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

Last year at Pageflakes, when we were getting millions of hits per day, we were having query timeout due to lock timeout and Transaction Deadlock errors. These locks were produced from aspnet_Users and aspnet_Membership tables. Since both of these tables...

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: , , ,

Strongly typed workflow input and output arguments by Omar AL Zabir blog on ASP.NET Ajax and .NET 3.5

When you run a Workflow using Workflow Foundation, you pass arguments to the workflow in a Dictionary form where the type of Dictionary is Dictionary<string, object>. This means you miss the strong typing features of .NET languages. You have to...
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: , ,
More Posts Next page »
Powered by Community Server (Non-Commercial Edition), by Telligent Systems