ObjectManager

The ObjectManager class allows an application to call the Object API in a reflection style.

IObjectManager rm = new MyDatabase_RM();
ClassMetaData customer = MyDatabase.Metadata.GetClass(“Customer”);
AttributeMetaData lname = customer.GetAttribute(“lname”);
OperationMetaData save = customer.GetOperation(“save”);
object myMBO = rm.NewObject(customer);
rm.SetValue(myMBO, lname, “Steve”);
rm.Invoke(myMBO, save, new ObjectList());