Localizing / Customizing Entity Framework and ASP.NET MVC 3

In most demos that you see that involve entity framework code first and ASP.NET MVC 3, localization is not mentioned.  What if you want to make your data multi-language friendly?  Here is a simple example: I want to have title column to be at most 30 characters in my entity:     [StringLength(30)]     public string Title …

Continue reading ‘Localizing / Customizing Entity Framework and ASP.NET MVC 3’ »

More on Repository Pattern with Entity Framework Code First

I got a comment on my first post on this pattern that pointed out unnecessary use of reflection as well as a way to make my sample cleaner.  I took an opportunity to go ahead and update the sample.  I added a bit of new functionality to illustrate how you can also pass in where …

Continue reading ‘More on Repository Pattern with Entity Framework Code First’ »

Technical Interview Questions and Answers

I recently read Scott Hanselman’s post on technical interviews. I took a stab at answering those for my own amusement.  I took a bit of time to research the questions to ensure my answers are correct (as far as I know anyway).  So, I thought, why not post them and get some feedback?  Also, I …

Continue reading ‘Technical Interview Questions and Answers’ »

More on Markup Extensions in Silverlight 5

In my previous post I showed how to write a simple mark up extension.  I also noticed that not too many folks are aware of the fact that you can obtain a lot of information about how markup extension is used in XAML from the provider object.  I am going to demonstrate how to do …

Continue reading ‘More on Markup Extensions in Silverlight 5’ »

Markup Extensions in Silverlight 5

Another cool feature available in Silverlight 5 is markup extensions.  The idea behind the feature is ability to allow developers to supply values to XAML parser at the time it parses visual tree.  In other words, once parser finds a markup extension in XAML, it will create an instance of it, set any properties that …

Continue reading ‘Markup Extensions in Silverlight 5’ »

Unleash the Power of Implicit Data Templates in Silverlight 5

One of the cool new features in Silverlight 5 are implicit data templates.  They allow developers to associate a set of visuals encapsulated inside a data template with a specific class.  You can find a cool demo of this feature on Tim Heuer;s blog.  One of the links in this article shows how to use …

Continue reading ‘Unleash the Power of Implicit Data Templates in Silverlight 5’ »

Do You Want to Learn More About Azure?

Microsoft and Magenic want to show you the best way to include cloud computing into your technology solution set. Dan Sandlin (Azure Solution Specialist) will discuss which projects are right for cloud computing and which ones you should avoid, as well as how to select your first cloud project and the ROI of Azure. Sergey …

Continue reading ‘Do You Want to Learn More About Azure?’ »

Global Conventions in Entity Framework Code First v 4.1

In my previous post I showed how to implement custom conventions in absence of the same feature in Entity Framework 4.1.  Today I am going to expand on the same topic and try to create some global contentions. Let me elaborate a bit on a problem I am trying to resolve.  For example, if I …

Continue reading ‘Global Conventions in Entity Framework Code First v 4.1’ »

Custom Conventions in Entity Framework Code First v 4.1

As you know, in preview version of Entity Framework code first existed concept of custom pluggable conventions that would allow the developer to avoid using large amounts of code in OnModelCreating method.  Typically, if one would like to keep entity classes free of entity framework references and possibly of Data Annotations references, fluent API available …

Continue reading ‘Custom Conventions in Entity Framework Code First v 4.1’ »