コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;";
 }
コード例 #3
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;");
 }
コード例 #4
0
 public void Update(DomainEntity.LoginEntity entity)
 {
     throw new NotImplementedException();
 }