Example #1
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;
        }
      }
    }