-
Design of a ViewModel Based Data Access Pattern
I have been doing a lot of reading about data access pattern, and I haven’t really been happy with them. Since then I have been doing a lot of thinking about a good way to do data access. The Repository Pattern The repository pattern seems to be the most popular...
-
Why Entity Framework 4.1's Linq capabilities are inferior to Linq-to-Sql
I have a small-ish website at work that contains several tools we use internally. I originally coded the database layer using Linq-to-Sql, as it was too small to be worth the learning curve of NHibernate and Entity Framework version 4 was not out at the time. However, lately database schema...
-
Keeping Asp.NET MVC Controller Constructors Clean In a Dependency Injection World
Update: After playing around with the concepts I talked about in this post I now pretty much disagree with what I wrote here. To see why, see part 2. In my experience, dependency injection has proven to be invaluable when creating applications. It has allowed me to easily follow test...
-
Performing a fuzzy search with multiple terms through multiple Lucene.Net document fields
Recently I have been trying to implement Lucene.Net into my web application to allow users to search through their data. My core requirements were that the search allows minor mis-spellings and that search terms can can be found across different fields. The code to accomplish this wasn’t immediately obvious, and...
-
Allowing Eager Loading In Business Logic via View Models
Today I am going to write a post about a library I have been thinking about for the past week. If I end up actually developing it I plan to make it open source as I think it solves an issue that a lot of systems may encounter in regards...