public bool GetByConnectionString(DomainEntity.LoginEntity entity) { try { using (JDAContext) { if (DBOPEN(Function.getConnectionString(entity), JDAContext)) { return(true); } else { return(false); } } } catch (Exception ex) { throw ex; } }
public static string getStoreConnectionString(DomainEntity.LoginEntity entity) { return($"Driver={{iSeries Access ODBC Driver}};DATABASE=MM770RSC;SYSTEM=10.87.201.26;UID={entity.username}; PWD={entity.password}; OPTION=0;"); //return $"Driver={{iSeries Access ODBC Driver}};DATABASE=MM770RSC;SYSTEM={entity.servername};UID={entity.username}; PWD={entity.password}; OPTION=0;"; }
public static string getConnectionString(DomainEntity.LoginEntity entity) { return($"Driver={{iSeries Access ODBC Driver}};DATABASE={entity.dBname};SYSTEM={entity.servername};UID={entity.username}; PWD={entity.password}; OPTION=0;"); }
public void Update(DomainEntity.LoginEntity entity) { throw new NotImplementedException(); }