public static bool Close(ISageAccess sageAccess) { try { if (sageAccess.GetSageDatabase.IsOpen) { sageAccess.GetSageDatabase.Close(); } return(true); }catch (Exception e) { return(false); } }
public static bool Open(ISageAccess sageAccess) { try { sageAccess.GetSageDatabase.CompanyServer = sageAccess.GetDatabaseInstance; sageAccess.GetSageDatabase.CompanyDatabaseName = sageAccess.GetDatabaseName; sageAccess.GetSageDatabase.Loggable.UserName = sageAccess.GetUsername; sageAccess.GetSageDatabase.Loggable.UserPwd = sageAccess.GetUserPwd; sageAccess.GetSageDatabase.Open(); return(true); } catch (Exception e) { return(false); } }
public SageOrderRepository(ISageAccess sageAccess) { _sageAccess = sageAccess; }
public SageClientRepository(ISageAccess sageDataAccess) { _sageDataAccess = sageDataAccess; }