Gunnar Peipman's ASP.NET blog
ASP.NET, C#, SharePoint, SQL Server and general software development topics.
-
NuPack, ASP.NET MVC 3 Beta and WebMatrix Beta 2 are here!
Some great news from Microsoft dudes – NuPack, ASP.NET MVC 3 Beta and WebMatrix Beta 2 are here! Seems like busy weekend is coming. Here you can find download links to new versions of products.
-
Bing Maps: Adding and tracking pushpins using JavaScript
I played with Bing Maps AJAX-based API and found it to be very easy to use after you know basic objects and you are able to use them. In this posting I will show you simple example about how to add pushpins to map and how to show coordinates of pushpins to users.
-
Announcing public source code repository with my blog samples
My blog is about three years old and I must they that it has been very interesting and exciting time with you, guys! Now it is time to add something new to make it easier for you to use this blog and the knowledge you can find here. This posting is specially dedicated to all my frequent readers and if you are one of them then your feedback to me is extremely important to me. Now, let’s go to topic – better availability of sample code is coming soon!
-
ASP.NET MVC: Using asynchronous controller to call web services
Lately I wrote about how to make a lot of asynchronous calls to web services during ASP.NET page processing. Now it’s time to make same thing work with ASP.NET MVC. This blog post shows you how to use asynchronous controllers and actions in ASP.NET MVC and also you will see more complex scenario where we need to gather results of different web service calls to one result set.
-
Using MemBus for messaging between application components
Sometimes we need publisher/subscriber messaging in our applications to broadcast messages to different parts of system in real time. We can always build our own solution for this but we can also use something that is already there. In this posting I will show you how to use MemBus to send messages from MDI parent form to MDI child forms.
-
Unity, Castle Windsor, StructureMap, Ninject – who has best performance?
I made quick comparison of performance of four DI/IoC containers. I measured Unity, Castle Windsor, StructureMap and Ninject in two scenarios – resolving objects with empty constructor and resolving object with injected parameters in its constructor. Results are here.
-
Generating data for tables in table per class inheritance tree using data generation plans
I am using Visual Studio database project and data generation plan to populate my database with random data. In my database there are some tables for table per class inheritance mapping and there are some additional steps required to get these tables filled with data correctly. In this posting I will describe the process of generating data for table per class inheritance tables and give you some hints how to make this data valid for O/R-mappers.
-
Returning paged results from repositories using PagedResult<T>
During my large database experiment I wrote simple solution for paged queries that I can use in my repositories. This far my experiments have shown pretty good results and I think it is time to share some of my code with you. In this posting I will show you how to create paged results using NHibernate and Entity Framework based repositories.
-
Using timer based Unit of Work and Command classes to measure repositories performance
In my last post Find out how long your method runs I introduced how to measure the speed of code using actions. In this posting I will make a step further and give you some ideas about how to create easily measurable code units and how to build measurable scenarios of them. As a foundation I use simplified versions of patterns like Command and Unit of Work.
-
Find out how long your method runs
I am making some experiments with large database and different O/R-mappers. To make it easier for me to measure the time that code takes to run I wrote simple command class that uses Stopwatch class and measures how long it takes for action to run. I this posting I will show you my class and explain how to use it.