I recently added about 10 more tables to my database. When I run NETTIERS to generate source code and then run the application I am getting an error when it tries to instantiate the DataProvider through NetTiersProvider dataProvider = ConnectionScope.Current.DataProvider;". If I look at the online help I can see that a lot of the providers have the following error: dataProvider.<%TableName%>Provider threw an exception of type 'System.NotImplementedException'.
I hope someone knows what the solution is for this because I have been working on this for about three days now trying to figure this out. What would cause several of my tables to now have the correct Provider? I have a screen shot of the error if anyone is interested in seeing it please take a look at www.blinfo.com/error.bmp.
Any help greatly appreciated...
Joe
The code that is being run is as follows:
public virtual TList<TestTable> GetAll(int start, int pageLength, out int totalCount)
{
// throws security exception if not authorized
SecurityContext.IsAuthorized("GetAll");
// get this data
TList<TestTable> list = null;
totalCount = -1;
TransactionManager transactionManager = null;
try
{
//since this is a read operation, don't create a tran by default, only use tran if provided to us for custom isolation level
transactionManager = ConnectionScope.ValidateOrCreateTransaction(noTranByDefault);
NetTiersProvider dataProvider = ConnectionScope.Current.DataProvider;
//Access repository
list = dataProvider.TestTableProvider.GetAll(transactionManager, start, pageLength, out totalCount);
}
catch (Exception exc)
{
//if open, rollback, it's possible this is part of a larger commit
if (transactionManager != null && transactionManager.IsOpen)
transactionManager.Rollback();
//Handle exception based on policy
if (DomainUtil.HandleException(exc, layerExceptionPolicy))
throw;
}
return list;
}