internal void Select(TDatabaseAuthentication authentication) { switch (authentication.Authentication) { case TAuthentication.SQL: AuthenticationSQL.CopyFrom(authentication); break; case TAuthentication.Windows: AuthenticationWindows.CopyFrom(authentication); break; } }
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; } } }