Listing Objects Used in Stored Procedures (MS SQL) May 21, 2013Munir HusseiniNo Comments Recently, I had to clean up a large data base. Some of the tables in that database were obsolete and…
In-Memory Code Generation With .NET – Emit & Linq February 17, 2013September 29, 2017Munir Husseini3 Comments This entry is part 4 of 5 in the series In-Memory Code Generation With .NETInstead of using templaing engines to create source code that need compilation, MSIL can be created using either Reflection Emit…
In-Memory Code Generation With .NET – Compilation February 17, 2013September 29, 2017Munir HusseiniNo Comments This entry is part 3 of 5 in the series In-Memory Code Generation With .NETIn the previous article from this series, templating engines to generate .NET source code were presented. Once source code is…
In-Memory Code Generation With .NET – Templating Engines February 17, 2013September 28, 2017Munir HusseiniNo Comments This entry is part 2 of 5 in the series In-Memory Code Generation With .NETTemplating engines allow a very flexible and quite easy, because human-readable definition of the code to be generated. Following, three…
In-Memory Code Generation With .NET – Models February 17, 2013September 28, 2017Munir HusseiniNo Comments This entry is part 1 of 5 in the series In-Memory Code Generation With .NETIn this series, I will show how to generate, compile and load .NET code at runtime using different techniques.
EF5 Migrations: Multiple Data Contexts in a Single Database February 15, 2013September 27, 2017Munir Husseini5 Comments Consider this: an application is built up from multiple modules, each with a different set of entities and data contexts.…
Determine SQL Server Version and Edition November 27, 2012Munir HusseiniNo Comments Here you go…. SELECT SERVERPROPERTY(‘productversion’), SERVERPROPERTY (‘productlevel’), SERVERPROPERTY (‘edition’)
Convert IVsHierarchy to ProjectItem or Project September 28, 2012Munir Husseini3 Comments The title says it all… here you go: Thanks to Ed Dore in the Visual Studio forums.
Helpful JavaScript Methods for the Telerik Grid for ASP.NET MVC June 14, 2012September 27, 2017Munir HusseiniNo Comments The Telerik MVC Grid is quite a cool component. Nevertheless, some client-side API functions are desperately missing. For example, you cannot select or…
Getting The Database Connection String From an ObjectContext June 13, 2012September 27, 2017Munir Husseini1 Comment The trick here is to cast the Connection property of the ObjectContext to the type System.Data.EntityClient.EntityConnection. Then you can access…