I can't work out what is going on. After upgrading to 2.1 from 2.0.3, I keep getting null references thrown like the following:
Line 42: using (IDataReader rdr = Product.FetchDetails().GetReader())
Stack Trace:
[NullReferenceException: Object reference not set to an instance of an object.] SubSonic.DataService.GetReader(QueryCommand cmd) in C:\svn\subsonicproject\trunk\SubSonic\DataProviders\DataService.cs:493 SubSonic.StoredProcedure.GetReader() in C:\svn\subsonicproject\trunk\SubSonic\ActiveRecord\StoredProcedure.cs:195 MyCompany.ManageProducts.LoadProducts()
It is true, Because Subsonic V2.1 can not detect StoredProcedures from datasource (SQL Server 2000,2005)
I use Substage or SubCommander to generate them but it will produce a blank file!!!!!
There is a bug in it.
This is a bug in the release version of 2.1. This has been fixed in the SVN repository and will be included in a 2.1.1 release in the near future...
Found a bug? Help us fix it by submitting a Work Item!
Cool thanks, I got the latest version from SVN and it works fine now.