Skip to content

Commit 4001432

Browse files
committed
Remove one useless settings and clean
1 parent 66767a7 commit 4001432

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

src/Dapper-Layers-Generator/Dapper-Layers-Generator.Core/Settings/SettingsColumn.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
//Position counter begin after Settings Table (don't forget to update)
44
public class SettingsColumn
55
{
6-
[SettingsAttribute(Message = "Enable Requiered decorator for not null fields: ", Position = 17)]
6+
[SettingsAttribute(Message = "Enable Requiered decorator for not null fields: ", Position = 15)]
77
public bool StandardRequiredDecorator { get; set; } = true;
88

9-
[SettingsAttribute(Message = "Enable StringLength decorator for string: ", Position = 18)]
9+
[SettingsAttribute(Message = "Enable StringLength decorator for string: ", Position = 16)]
1010
public bool StandardStringLengthDecorator { get; set; } = true;
1111

12-
[SettingsAttribute(Message = "Fully qualified (full namespace) type (ex Enum): ", Position = 19, OnlyInColumnMode = true)]
12+
[SettingsAttribute(Message = "Fully qualified (full namespace) type (ex Enum): ", Position = 17, OnlyInColumnMode = true)]
1313
public string FieldNameCustomType { get; set; } = string.Empty;
1414

15-
[SettingsAttribute(Message = "Fully qualified (full namespace) custom decorator: ", Position = 20, OnlyInColumnMode = true)]
15+
[SettingsAttribute(Message = "Fully qualified (full namespace) custom decorator: ", Position = 18, OnlyInColumnMode = true)]
1616
public string? FieldNameCustomDecorator { get; set; } = string.Empty;
1717
}
1818
}

src/Dapper-Layers-Generator/Dapper-Layers-Generator.Core/Settings/SettingsTable.cs

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,37 +14,34 @@ public class SettingsTable
1414
[SettingsAttribute(Message = "Ignored column names for Update operation (separator ,): ", Position = 4, IsColumnListChoice = true)]
1515
public string IgnoredColumnNamesForUpdate { get; set; } = string.Empty;
1616

17-
[SettingsAttribute(Message = "Ignored column names for Delete operation (separator ,): ", Position = 5, IsColumnListChoice = true)]
18-
public string IgnoredColumnNamesForDelete { get; set; } = string.Empty;
19-
20-
[SettingsAttribute(Message = "JSON ignore decoration for column names (separator ,): ", Position = 6, IsColumnListChoice = true)]
17+
[SettingsAttribute(Message = "JSON ignore decoration for column names (separator ,): ", Position = 5, IsColumnListChoice = true)]
2118
public string JsonIgnoreDecoration { get; set; } = string.Empty;
2219

23-
[SettingsAttribute(Message = "Enable get all function generator: ", Position = 7, Group = "Generator")]
20+
[SettingsAttribute(Message = "Enable get all function generator: ", Position = 6, Group = "Generator")]
2421
public bool GetAllGenerator { get; set; } = true;
2522

26-
[SettingsAttribute(Message = "Enable get by primary key function generator: ", Position = 8, Group = "Generator")]
23+
[SettingsAttribute(Message = "Enable get by primary key function generator: ", Position = 7, Group = "Generator")]
2724
public bool GetByPkGenerator { get; set; } = true;
2825

29-
[SettingsAttribute(Message = "Enable get by primary keys list function generator: ", Position = 9, Group = "Generator")]
26+
[SettingsAttribute(Message = "Enable get by primary keys list function generator: ", Position = 8, Group = "Generator")]
3027
public bool GetByPkListGenerator { get; set; } = true;
3128

32-
[SettingsAttribute(Message = "Enable get by unique key function generator: ", Position = 10, Group = "Generator")]
29+
[SettingsAttribute(Message = "Enable get by unique key function generator: ", Position = 9, Group = "Generator")]
3330
public bool GetByUkGenerator { get; set; } = true;
3431

35-
[SettingsAttribute(Message = "Enable add function generator: ", Position = 12, Group = "Generator")]
32+
[SettingsAttribute(Message = "Enable add function generator: ", Position = 10, Group = "Generator")]
3633
public bool AddGenerator { get; set; } = true;
3734

38-
[SettingsAttribute(Message = "Enable update function generator: ", Position = 13, Group = "Generator")]
35+
[SettingsAttribute(Message = "Enable update function generator: ", Position = 11, Group = "Generator")]
3936
public bool UpdateGenerator { get; set; } = true;
4037

41-
[SettingsAttribute(Message = "Enable delete function generator: ", Position = 14, Group = "Generator")]
38+
[SettingsAttribute(Message = "Enable delete function generator: ", Position = 12, Group = "Generator")]
4239
public bool DeleteGenerator { get; set; } = true;
4340

44-
[SettingsAttribute(Message = "(NOT IMPLEMENTED) Enable add bulk function generator: ", Position = 15, Group = "Generator")]
41+
[SettingsAttribute(Message = "(NOT IMPLEMENTED) Enable add bulk function generator: ", Position = 13, Group = "Generator")]
4542
public bool AddBulkGenerator { get; set; } = false;
4643

47-
[SettingsAttribute(Message = "(NOT IMPLEMENTED) Enable update bulk function generator: ", Position = 16, Group = "Generator")]
44+
[SettingsAttribute(Message = "(NOT IMPLEMENTED) Enable update bulk function generator: ", Position = 14, Group = "Generator")]
4845
public bool UpdateBulkGenerator { get; set; } = false;
4946

5047
//Global table settings

0 commit comments

Comments
 (0)