Tag Archives: Programming

Creating the Family Page – Part 7, Beginning on the Wish List

Now that all the user and role code is done, it is time to add some real functionality. This time we will add the data model for the wish list and create a basic controller and view for it. This … Continue reading

Posted in ASP.NET MVC, C#, Web | Tagged , , , , | Leave a comment

Creating The Family Page – Part 6, Role and User Management

This time we will add role management and subsequently give an administrator the ability to a manage (add/edit/delete) users. It might seem overkill to have roles on such a simple page, that will hold the content of a family of … Continue reading

Posted in ASP.NET identity, C#, HTML5, Web | Tagged , , , , | 6 Comments

Creating the Family Page–Part 3, User Accounts–expanding the IdentyUser

The next couple of posts we will talk about user accounts. This time we will look at expanding the information stored on the user account. First we will take a look at how user account data is stored. As mentioned … Continue reading

Posted in C#, HTML5, Web | Tagged , , , | Leave a comment

Creating the Family Page – Part 1, Setting the Scene

This is the first post in a series where I will create a new website for my family. While doing it I will blog about my progress. Normally I do backend stuff or LOB applications with WPF or Windows Forms. … Continue reading

Posted in C#, CSS3, HTML5, HTML5, Ikke kategoriseret, javascript, Web, Windows Azure | Tagged , , , , | Leave a comment

LINQ – the order of elements when using Where()

Last week I was asked if the order of elements found using a where clause was guaranteed to be the same as the order of the original collection. That question is hard to answer. In the normal case (where nobody has overwritten … Continue reading

Posted in C#, Linq | Tagged , , , , , , | Leave a comment

LINQ and iterating over null collections.

Ok, todays title is weird, but I have come up with a little hack, that will make the code easier to read (sometimes). At work we have some pretty clear specifications, that says how to fill out some properties in … Continue reading

Posted in C#, Linq | Tagged , , , , | Leave a comment

LINQ and counting

When we work with collections we often have to count the elements in some way. Sometimes we need to know how many elements there are or how many elements that  complies with some  condition. So let’s assume that I have … Continue reading

Posted in C#, Linq | Tagged , , , , , | 2 Comments