In my last post, I mentioned why I use Autofac with ASP.NET MVC, and how to set up a basic configuration. In this post, I will explain how to create an Autofac module that can be used to switch between different caching implementations. … [Read more...]
What is the Best IoC Container for ASP.NET MVC?
Unity, Windsor and Autofac are three popular IoC containers that I've used when developing ASP.NET MVC applications. I've found, the easiest to set up and get going, is Autofac. In my last post, I explained how to create a Settings API with Entity Framework. In this post, I will show you how to add Autofac to the project, so that we can inject the dependencies into controllers. … [Read more...]
How to Store Application Settings in ASP.NET MVC Using Entity Framework
In this tutorial, we will create a strongly typed Settings API that uses Lazy loading, Cache, Reflection and Entity Framework to manage application settings in ASP.NET MVC. I will explain why its better to store settings in a database, how using reflection can make it easier to add new settings, and how to group the settings into a wrapper that uses Lazy loading and cache. … [Read more...]
Using Case Sensitive Fields In Entity Framework Code First
For the past couple of days I have been working on a project that is using Entity Framework Code First and requires some data to be case sensitive. The problem is, by default you can't do a query that is case sensitive with Entity Framework Code First. The following queries would bring back the same record. … [Read more...]
Unity 3D: How to Secure Your Player Preferences
Have you ever wondered why people seem to get really high scores on the iOS leaderboards? Its probably because the developer forgot to encrypt their Unity player preferences. In this article I will show you a simple way to encrypt the player preferences so that users can't cheat or bypass in-app purchases. … [Read more...]
- « Previous Page
- 1
- …
- 5
- 6
- 7