Localized enums with Entity Framework Code-First 4.1 in WPF MVVM and ASP.NET MVC 3

In part 1) I would like to present the solution of using enum types with Entity Framework Code-First (EF CF later). Then in part 2) I would like to show how easily display these enums in WPF MVVM and in Part 3)  I will try to explain my approach for displaying and binding localized enums in ASP.NET MVC 3 application. EF CF approach is still developed and in version 4.1 it …

By Mirek on (tags: ASP.NET MVC, Code First, Entity Framework, enums, localization, mvvm, WPF, categories: code, web)

Displaying hierarchical data in WPF and ASP.Net MVC

Let assume we have following self referencing table of people Each row represents the person and contains self unique identifier, name, last name and the Id of the parent or null if person has no parent. Now we would like to display the list of persons as a hierarchical tree showing the relationships between each person. Let create the Person model that will represent one perso…

By Mirek on (tags: ASP.NET MVC, hierarchical data, Self referencing tables, WPF, categories: code)