Geeks With Blogs
Rohit Gupta Engaging talk on Microsoft Technologies ....My Resume
April 2012 Entries
When Nuget adds bindingRedirect elements to the app.config for assemblies
If you see Nuget adding bindingRedirect to your app.config , when doing updates to existing assemblies, and if you feel this was not what you expected then read on. Here is an example of a bindingRedirect added to the web.config file: 1: <runtime> 2: <assemblyBinding xmlns="urn:schemas-microsof... 3: <dependentAssembly> 4: <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad3... /> 5: <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" ......

Posted On Wednesday, April 25, 2012 1:23 AM

Using NHibernate with SQL Azure Federations
To use SQL Azure Federations with NHibernate we need to insure that we reuse the connection that was used for executing the USE Federation command. Secondly we need to insure that we don’t enlist the “use Federation” command in a transaction. For this purpose I have created a helper class named NHibernateSession which has a parameterized constructor which opens a connection and then associates that connection with the NHibernate ISession. The NHibernateSession class looks like the following: 1: public ......

Posted On Wednesday, April 18, 2012 9:25 AM

Copyright © Rohit Gupta | Powered by: GeeksWithBlogs.net