Skip to content

Commit f13005a

Browse files
committed
Update ID identifier in generated sql queries. Update readme.
1 parent 9547729 commit f13005a

7 files changed

Lines changed: 21 additions & 11 deletions

File tree

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
These M-Files Dev Tools are designed to help automate repetitive parts of M-Files configuration process.
44
The solution currently contains a single tool: **AliasUpdate**, which enables batch set or update of vault aliases.
55

6-
## AliasUpdate.App
6+
## Alias Update
77

88
Console application that updates M-Files vault aliases using a set of rules and templates defined in json configuration file.
99

1010
### Getting started:
1111

1212
- Download latest release from [releases page](https://github.com/unitfly/Unitfly.MFiles.DevTools/releases)
1313
- Extract files from zip archive
14+
- Navigate to *AliasUpdate* folder
1415
- Edit settings in *appsettings.json* file
1516
- Run *Unitfly.MFiles.DevTools.AliasUpdate.App*
1617
- To see available commands, type `help`
@@ -25,14 +26,23 @@ Console application that updates M-Files vault aliases using a set of rules and
2526

2627
For more more details on running and configuring this tool, check out [wiki page](https://github.com/unitfly/Unitfly.MFiles.DevTools/wiki/Alias-Update).
2728

28-
## AliasUpdate
29+
## Sql Generator
2930

30-
Class library that exposes methods for mass update of M-Files aliases. This library is used in *AliasUpdate.App*.
31+
Console application that generates sql queries (CREATE, UPDATE, INSERT, DELETE) for M-Files classes that can be used in connection to external database.
32+
Application uses a set of rules and settings defined in json configuration file to establish connection to an M-Files vault and to normalize class and property names in generated SQL queries.
3133

32-
## DevTools.Common
34+
### Getting started:
35+
36+
- Download latest release from [releases page](https://github.com/unitfly/Unitfly.MFiles.DevTools/releases)
37+
- Extract files from zip archive
38+
- Navigate to *SqlGenerator* folder
39+
- Edit settings in *appsettings.json* file
40+
- Run *Unitfly.MFiles.DevTools.SqlGenerator.App*
41+
- To see available commands, type `help`
3342

34-
Class library that contains common classes used in tools.
43+
![help](https://github.com/unitfly/Unitfly.MFiles.DevTools/raw/master/images/SqlGenerator.App.Help.PNG)
44+
45+
- To see usage information and available options on any command, run `help {commandName}`
3546

36-
## DevTools.Common.Tests
47+
For more more details on running and configuring this tool, check out [wiki page](https://github.com/unitfly/Unitfly.MFiles.DevTools/wiki/Sql-Generator).
3748

38-
Unit tests of functionality exposed in DevTools.Common project.

Unitfly.MFiles.DevTools.AliasUpdate.App/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("0.2.1.0")]
34+
[assembly: AssemblyVersion("0.2.2.0")]
3535
[assembly: AssemblyFileVersion("1.0.0.0")]

Unitfly.MFiles.DevTools.SqlGenerator.App/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("1.0.0.0")]
35+
[assembly: AssemblyVersion("0.2.2.0")]
3636
[assembly: AssemblyFileVersion("1.0.0.0")]

Unitfly.MFiles.DevTools.SqlGenerator/Table.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public string UpdateQuery
4545
{
4646
if (_updateQuery is null)
4747
{
48-
var id = IdColumn?.Name ?? "<ID>";
48+
var id = IdColumn?.Name ?? "[ID]";
4949
var sb = new StringBuilder();
5050
sb.AppendLine($"UPDATE {Name} SET");
5151
sb.AppendLine(string.Join(",\r\n", Columns.Select(c => $" {c?.Name} = ?")));
@@ -80,7 +80,7 @@ public string DeleteQuery
8080
{
8181
if (_deleteQuery is null)
8282
{
83-
var id = IdColumn?.Name ?? "<ID>";
83+
var id = IdColumn?.Name ?? "[ID]";
8484
_deleteQuery = $"DELETE FROM {Name} WHERE {id} = ?";
8585
}
8686
return _deleteQuery;

images/AliasUpdate.App.Help.PNG

3.65 KB
Loading
2.75 KB
Loading

images/SqlGenerator.App.Help.PNG

39.3 KB
Loading

0 commit comments

Comments
 (0)