Datei: Provider/PostGresProvider/PostGresUISupport/PostGresUIProvider.cs
Last Commit (fbaa1b0)
1 | using System.Windows.Forms; |
2 | using NDO.UISupport; |
3 | |
4 | namespace NDO.PostGresUISupport |
5 | { |
6 | ····public class PostGresUIProvider : DbUISupportBase |
7 | ····{ |
8 | ········public override string Name => "Postgre"; |
9 | |
10 | ········public override NdoDialogResult ShowConnectionDialog( ref string connectionString ) |
11 | ········{ |
12 | ············var csef = new ConnectionStringEditorForm( connectionString ); |
13 | ············if (csef.ShowDialog() == DialogResult.Cancel) |
14 | ················return NdoDialogResult.Cancel; |
15 | connectionString = csef. ConnectionString; |
16 | ············return NdoDialogResult.OK; |
17 | ········} |
18 | |
19 | // For CreateDatabase we can use the standard implementation |
20 | ····} |
21 | } |
22 |
New Commit (f4c9ea2)
1 | using System.Windows.Forms; |
2 | using NDO.UISupport; |
3 | |
4 | namespace NDO.PostGresUISupport |
5 | { |
6 | ····public class PostGresUIProvider : DbUISupportBase |
7 | ····{ |
8 | ········public override string Name => "Postgre"; |
9 | |
10 | ········public override NdoDialogResult ShowConnectionDialog( ref string connectionString ) |
11 | ········{ |
12 | ············var csef = new ConnectionStringEditorForm( connectionString ); |
13 | ············if (csef.ShowDialog() == DialogResult.Cancel) |
14 | ················return NdoDialogResult.Cancel; |
15 | connectionString = csef. ConnectionString. Replace( "User=", "User Id=" ) ; |
16 | ············return NdoDialogResult.OK; |
17 | ········} |
18 | |
19 | public override string CreateDatabase( object necessaryData ) |
20 | ········{ |
21 | ············return base.CreateDatabase( necessaryData ); |
22 | ········} |
23 | ····} |
24 | } |
25 |