Sorry, perhaps I didn't explain myself too well. I have created a separate DAL with SubStage, and am trying to create a BLL to wrap the CRUD functions with error handling, then calling this BLL in a Windows form. All VS2005 SP1 VB.NET.
In the header of the BLL class I have a Public ioDAL As New BLLName.DALNameSpace.tableName, and wish to resue this throughout. I have then created a NewRecord() method, in which I want to create an ioDAL item with empty fields. I have tried two basic ways to do this without success:
1. Call FetchByID() with an invalid PK value. In SS2.0.3 this would give me my empty item. However, in 2.1 if you trace it through the FetchByIdInternal() method in the ReadOnlyRecord.cs class returns null (Nothing in VB.NET).
2. Re-Dim'ed the class to ioDAL as suggested. Tracing this seems to give me what I want in the NewObject() method, but then drops it (? loses scope) when I get back to the calling form.
Kevin