Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Raising events in commandhandlers

AddThis Social Bookmark Button
I've explored quite a few options on how to handle commands and queries in the last few posts. I finally settled on this approach. The example used in that post looked like this.
public class CreateSubscriptionCommandHandler : ICommandHandler { private IDocumentSession _session; public CreateSubscriptionCommandHandler(IDocumentSession session) { _session = session; } public void Handle(CreateSubscriptionCommand command) { var subscription = new Documents.Subscription(
command.Value, command.Category, command.EmailAddress); _session.Store(subscription); } } Now imagine I would want to do some extra stuff after creating the subscription; update the sales statistics, append the email address to a mailing list, send out a confirmation email, etc..

You could go at this by simply extending the commandhandler, but the problem here is that you quickly end up with a bulky and dependency-heavy commandhandler, which will quickly fail to communicate its intent.

One solution could be to...(Read whole news on source site)

David Warren - the inventor of the Black Box

AddThis Social Bookmark Button
I try not to use my blog for too many personal things but I couldn't resist.  A good friend of mine, who also happens to be one of our Visual Studio ALM MVPs, sent me an email.  He told me about a project his daughter has undertaken to have the world commemorate the life and work of David Warren - the inventor of the flight data recorder, or Black Box.  I just finished watching her YouTube video and am amazingly impressed with the work of such a young woman.  I added my name to the petition. Regardless of whether you support
her campaign, I encourage you to watch her video.  She has a bright future in journalism if that's the way her life takes her. You can watch her YouTube video here:, which also has a link to her petition. And you can check out her blog here: Thanks for listening, Brian
...(Read whole news on source site)

Free Windows 8 Style UI templates for developing Websites

AddThis Social Bookmark Button
Most of the users would have already be aware of the Windows 8 Style UI . The windows on tablet or touch based devices is really awesome . The UI that was codename “Metro UI” is very appealing . The number of apps for windows 8 is also increasing in the windows app store day by day. There are many websites that are adapting the Windows 8 Style UI for their website which provides the similar look and feel of Windows Phone and Windows 8 UI. Many GUI designer would be interested to know how to design ui similar to
Windows 8 . If you are developing websites and want to apply the Windows 8 Style UI , you can build them easily with some the free templates that are available. In this blog post , we will cover some of the free Windows 8 Style UI templates for developing Websites Free Windows 8 Style UI templates for developing Websites 1. Metro UI CSS Metro UI CSS is a responsive website framework that allows the developers to create web site that looks like Windows 8 easily. Metro UI CSS is also cross browser compatible. Metro UI CSS developed by Sergey...(Read whole news on source site)

A Generic Entity Framework 5 Repository With Eager-Loading

AddThis Social Bookmark Button
I’ve been doing some work with Entity Framework 5 lately.  Here’s a simple generic repository I created that allows you to “Include” related entities by applying an attribute. Consider these sample entities: public class User { [Key] public int UserId { get; set; } [Required, MaxLength(50)] public string Username { get; set; } [Required] public UserDetails Details { get; set; } [Required] public SecurityQuestions SecurityQuestion { get; set; } [Required,
MaxLength(50)] public string SecurityAnswer { get; set; } [Required] public RegisterStatus RegisterStatus { get; set; } } public class UserDetails { [Key] public int UserId { get; set; } [ForeignKey("UserId")] public virtual User User { get; set; } [Required] public int AddressId { get; set; } [ForeignKey("AddressId")] public Address Address { get; set; } [Required, MaxLength(50)] public string FirstName { get; set; } ...(Read whole news on source site)

LINQ Insight 2.0 now supports RavenDB

AddThis Social Bookmark Button
Recently , Devart released the LINQ Insight 2.0 with the support for RavenDB and other new features . What is LINQ Insight ? LINQ Insight is a Visual Studio add-in which allows the execution of the LINQ queries at design time . Some of the features of LINQ Insight 2.0 includes support for RavenDB List and array parameters support Better integration with Visual Studio debugger Improved connection string editor and more… Download LINQ Insight free Express Edition LINQ Insight is available in 2 different editions Express Edition Standard Edition Express edition is a freeware LINW debug visualizer and displays SQL
and parameters for LINQ to NHibernate , LINQ to SQL , LINQ to Entities , LinqConnect. LINQ Insight Standard provides all the functionalities of Linq Insight free Express Edition and also additional few more functionalities. Know more about LINQ Insight and download it from LINQ Insight product website...(Read whole news on source site)

How to hide title bar in jQuery UI modal dialog?

AddThis Social Bookmark Button
jQuery UI is a great open source set of user controls and it’s very easy to use. Recently one of my friend asked question that how we can hide title bar in jQuery UI Dialog? so this post is a reply to him. Let’s create a simple html and use jQuery Ui modal dialog. Following is a code for that. Here in the above code you can see I have create a hello world pop up with jQuery CDN. Hello World</div><div align="left"> Popup

How to create overload methods in WCF service with C#

AddThis Social Bookmark Button
Before some days I have posted an blog about How to create overloaded web methods in web service? In this post I am going to explain how we can create overload methods in WCF(Windows Communication Foundation) service with C# language. So let’s consider same Hello world example which we have used web service overload method. Let’s create two methods HelloWorld one is with name and another is without parameter. For WCF service we have to first create interface following is a code for that. using
System.ServiceModel; namespace WebApplication4 { [ServiceContract] public interface IHelloWorldOverload { [OperationContract] string HelloWorld(); [OperationContract] string HelloWorld(string name); } } Now our interface is ready so it’s time to implement this interface and create WCF service like following. namespace WebApplication4 { public class HelloWorldOverload : IHelloWorldOverload { public string HelloWorld() { ...(Read whole news on source site)