...
To correct this, you can no longer refer to the singleton instance property, but instead use an instance of the Manager class instead:
Code Block | ||||
---|---|---|---|---|
| ||||
var manager = new JiwaFinancials.Jiwa.JiwaApplication.Manager(); manager.Logon("MyServer", "JiwaDemo", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", password); manager.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder>()null; var db = manager.Database; using (SqlCommand SQLCmd = new SqlCommand(sql, db.SQLConnection, db.SQLTransaction)) { } |
...
An example of using the Entity Factory of the Manager:
Code Block | ||||
---|---|---|---|---|
| ||||
var branch = Manager.EntityFactory.CreateEntity<JiwaFinancials.Jiwa.JiwaApplication.Entities.Sales.Branch>(); branch.ReadRecord("ABC123"); |
...