General information
Category:
The Mere Mortals .NET Framework
Kevin,
Actually the entire code block is quite short, so I have pasted it below, where "FX" is the name of an existing VistaDB database:
using OakLeaf.MM.Main;
using OakLeaf.MM.Main.Data;
using OakLeaf.MM.Main.Business;
using OakLeaf.MM.Main.Security;
using OakLeaf.MM.Main.Managers;
namespace dtc.fxsolution.Business
{
protected override OakLeaf.MM.Main.Data.mmDataAccessBase CreateDataAccessObject(string dataAccessClassName)
{
if (dataAccessClassName.ToLower() == "vistadb")
{
return new mmDataAccessVistaDB();
}
else
{
return base.CreateDataAccessObject (dataAccessClassName);
}
}
///
/// Application-level Business Object class
///
public class ABusinessObject : mmBusinessObject
{
///
/// Constructor
///
public ABusinessObject()
{
this.DatabaseKey = "FX";
this.DataAccessClass = "vistadb";
}
}
/// summary
/// Application-level Business Rule class
/// /summary
public class ABusinessRule : mmBusinessRule
{
/// summary
/// Constructor
/// /summary
/// param name="hostObject">Host object public ABusinessRule(ImmBusinessRuleHost hostObject)
: base(hostObject)
{
}
}
}
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only