Browse by Tags
All Tags »
.NET (
RSS)
A common request when working with LINQ queries (Entity Framework, NHibernate, etc) is the ability to intercept them, that is, inspect an existing query and possibly modify something in it. This is not extremely difficult to do “by hand”, but Microsoft...
Back to Entity Framework Code First (EFCF) validation. On my previous post I mentioned that EFCF did not support fluent validation. While this is true, it isn’t too hard to implement one such mechanism, which is exactly why I am writing this! I will be...
Introduction Most persistence frameworks implement some kind of custom validation of entities before they are sent to the database. By custom I mean something more than just “is not null”, “has XX characters”, etc. This typically includes individual properties...
This post is in portuguese only, sorry! A partir de um comentário no LinkedIn , no grupo da Comunidade Portuguesa de SharePoint ( http://www.linkedin.com/groups?home=&gid=996587&trk=anet_ug_hm ) foi começada uma lista dos blogs de autores portugueses...
Introduction In some O/RMs, it is possible to specify automatic filters for entity collections such as one-to-many or many-to-many. These are applied automatically whenever these collections are being populated. Entity Framework does not offer one such...
This is a short post to complement my previous one on Entity Framework Code First Inheritance : how to query for a specific class. The options are: From the DbContext collection: 1: IEnumerable<DerivedA> derived = ctx.Bases.OfType<DerivedA>...
Visual Studio 2012 and .NET 4.5 Expert Development Cookbook I recently started reading Packt Publishing ’s Visual Studio 2012 and .NET 4.5 Expert Development Cookbook . It is a book focused primarily on the new features of .NET 4.5 and Visual Studio 2012...
Introduction Another post for self reference, this time, how to map inheritance strategies with Entity Framework Code First. Single Table Inheritance / Table Per Class Hierarchy First, the default strategy: one table for all classes in the hierarchy....
Introduction This post is more for self-reference than anything else. Basically, I tend to forget some options for mapping relations with Entity Framework Code First, so I wrote this. If in doing so it helps someone, even better! One-to-Many First, the...
AOP This is my third post on Unity. See the first here for an introduction and the second here for how to apply dependency injection. Aspect Oriented Programming (AOP) is a technique for applying cross-cutting concerns to existing implementations, without...
More Posts
Next page »