...
Code Block | ||||
---|---|---|---|---|
| ||||
JiwaFinancials.Jiwa.JiwaApplication.Manager.Instance.Logon("MyServer", "JiwaDemo", JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, "Admin", password); JiwaApplication.Manager.Instance.BusinessLogicFactory.CreateBusinessLogic<JiwaFinancials.Jiwa.JiwaSales.SalesOrder.SalesOrder>()null; var db = JiwaApplication.Manager.Instance.Database; using (SqlCommand SQLCmd = new SqlCommand(sql, db.SQLConnection, db.SQLTransaction)) { } |
Warning |
---|
The above example will now fail to compile, giving the |
...
errorĀ "'Instance' is not a member of 'JiwaFinancials.Jiwa.JiwaApplication.Manager'". |
To correct this, you can no longer refer to the singleton instance property, but instead use an instance of the Manager class instead:
...