Tag Archives: .NET

Referencing a .NET assembly in a compile time safe manner

If you need to provide a System.Reflection.Assembly instance to an API [1], there are several mechanisms for doing so. They roughly split into two camps: Run-time assembly loading Assemblies known at compile time The run-time assembly loading includes scenarios such … Continue reading

Posted in Computers and Internet | Tagged , , , , , , | Leave a comment

Entity Framework Performance Tip for Creating Entities

This tip is applicable if you’re using Entity Framework Code First with dynamic proxies and you have a lot of objects attached to your context, for whatever reason (e.g. within a batch job). The first thing to note is that … Continue reading

Posted in Computers and Internet | Tagged , , , | Leave a comment

Tightening Injected Dependencies on Entity Framework

Dependency injection as a pattern provides a lot of useful nudges to get you to produce easily readable and maintainable code. One way in which it does this is to make dependencies explicit so you can see exactly what services a … Continue reading

Posted in Computers and Internet, laZook | Tagged , , , , , , , | 1 Comment