The GetDataModelObject method returns an instance of a DataModel based on a specified class name.
Namespace – ABSuite.AccessLayer.Connector.Core
Assembly – Unisys.ABSuite.AccessLayer.Connector.Core (in Unisys.ABSuite.AccessLayer.Connector.Core.dll)
Syntax
Object GetDataModelObject(
string className
)
Argument
className – System.String
This argument provides the name of an ispec or a class to be loaded.
Return Value
The GetDataModelObject returns a generic object type that can be cast to a specific DataModel type, if required.
Using the IRtConnection Interface for the GetDataModelObject Method
The following code is an example of using the GetDataModelObject method:
// Create an instance of a PRODModel class by using // GetDataModelObject() // ABSConnection is an instance IConnection // DataHandler is an instance of IRtConnection PRODModel pModel = (PRODModel) ABSConnection.DataHandler.GetDataModelObject("PROD"); // Populate the PRODModel pModel._UserMAINT = "FIR";