• C#

    SubSonic – No stored procedures?

    Using C# 2.0 + MySQL + SubSonic 2.1 I ran into a problem where no stored procedures were being generated. I did some webdigging but did not find the exact answer (was asking the wrong question). Anyways after diving into the subsonic code I found the source of the problem but was not certain how to fix it. Another web search got me the answer here: http://forums.subsonicproject.com/Search?q=+sp.SchemaName+%3D+rdr%5B%22SPSchema%22%5D.ToString%28%29%3B Basically remove sp.SchemaName = rdr[“SPSchema”].ToString(); from DataService, approximately line 420. There are more elegant solutions available, but this got me through the initial hurdle.

  • C#

    !Fun in programming land

    I have been working a bit on an application and am using Nunit to do unit testing. I have been pretty happy until I ran into problems using a WebBrowser problem with nUnit. With help from http://www.kbcafe.com/csharp/?guid=20070224120142 and http://code.google.com/p/joeydotnet/source/browse/joeyDotNet/samples/Blog/tools/nunit/NUnitTests.config?spec=svn51&r=51 I figured it out. I had to create a config file from scratch since I did not have one. This config file (make sure to name it the same as the nunit test) let me be able to include WebBrowser stuff in my unit testing. <?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="NUnit"> <section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler"/> <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/> </sectionGroup> </configSections> <NUnit> <TestCaseBuilder> <!– Set to true to recognize old style…