Esempio n. 1
0
        internal void Select(TDatabaseAuthentication authentication)
        {
            switch (authentication.Authentication)
            {
            case TAuthentication.SQL:
                AuthenticationSQL.CopyFrom(authentication);
                break;

            case TAuthentication.Windows:
                AuthenticationWindows.CopyFrom(authentication);
                break;
            }
        }
Esempio n. 2
0
    internal void Select (TDatabaseAuthentication authentication)
    {
      if (authentication.NotNull ()) {
        switch (authentication.Authentication) {
          case TAuthentication.SQL:
            AuthenticationSQL.CopyFrom (authentication);

            if (authentication.IsActive) {
              Authentication = TAuthentication.SQL;
            }

            break;

          case TAuthentication.Windows:
            AuthenticationWindows.CopyFrom (authentication);

            if (authentication.IsActive) {
              Authentication = TAuthentication.Windows;
            }

            break;
        }
      }
    }