Browse Source

refactor; code fixes

develop
Robin Thoni 6 years ago
parent
commit
5193e99fbe
69 changed files with 240 additions and 492 deletions
  1. 77
    76
      .idea/.idea.luticate2/.idea/contentModel.xml
  2. 4
    4
      Luticate2.Auth.ConsoleSample/Commands/CreateCommand.cs
  3. 6
    7
      Luticate2.Auth.ConsoleSample/Commands/ListCommand.cs
  4. 1
    1
      Luticate2.Auth.ConsoleSample/LuExtenstions.cs
  5. 6
    8
      Luticate2.Auth.ConsoleSample/Program.cs
  6. 0
    179
      Luticate2.Auth.Tests/Business/Fields/LuDboModelExpressionConverterTests.cs
  7. 2
    2
      Luticate2.Auth.Tests/Business/Fields/LuFieldDboTests.cs
  8. 1
    1
      Luticate2.Auth.Tests/Business/LuExpressionUtilsTests.cs
  9. 3
    3
      Luticate2.Auth.Tests/Business/ObjectConverter/ObjectConverterTests.cs
  10. 1
    1
      Luticate2.Auth.Tests/Business/ObjectConverter/Objects.cs
  11. 4
    4
      Luticate2.Auth.Tests/Business/Pagination/LuFilterTests.cs
  12. 1
    13
      Luticate2.Auth.Tests/RandomTests.cs
  13. 8
    8
      Luticate2.Auth/Auth/Business/LuGroupsBusiness.cs
  14. 7
    7
      Luticate2.Auth/Auth/Business/PartialObjectCopier/LuPOCGroupsToDbo.cs
  15. 7
    7
      Luticate2.Auth/Auth/Business/PartialObjectCopier/LuPOCGroupsToModel.cs
  16. 7
    7
      Luticate2.Auth/Auth/Business/PartialObjectCopier/LuPOCObjectsMetadataToDbo.cs
  17. 2
    2
      Luticate2.Auth/Auth/DataAccess/Luticate2DbContext.cs
  18. 1
    1
      Luticate2.Auth/Auth/DataAccess/Models/LuGroups.cs
  19. 1
    1
      Luticate2.Auth/Auth/DataAccess/Models/LuGroupsObjects.cs
  20. 1
    1
      Luticate2.Auth/Auth/DataAccess/Models/LuObjectsMetadata.cs
  21. 1
    1
      Luticate2.Auth/Auth/DataAccess/Models/LuUsers.cs
  22. 1
    1
      Luticate2.Auth/Auth/DataAccess/Models/TestTable.cs
  23. 1
    1
      Luticate2.Auth/Auth/DataAccess/Models/luticate2Context.cs
  24. 1
    1
      Luticate2.Auth/Auth/Dbo/LuGroupDbo.cs
  25. 1
    1
      Luticate2.Auth/Auth/Dbo/LuObjectDbo.cs
  26. 1
    1
      Luticate2.Auth/Auth/Dbo/LuObjectsMetadataDbo.cs
  27. 0
    20
      Luticate2.Auth/Interfaces/ILuExpressionConverter.cs
  28. 0
    14
      Luticate2.Auth/Interfaces/ILuOrderByObjectType.cs
  29. 1
    2
      Luticate2.Auth/Luticate2.Auth.csproj
  30. 8
    8
      Luticate2.Auth/Utils/Business/Crud/LuEfCrudBusiness.cs
  31. 1
    1
      Luticate2.Auth/Utils/Business/ExpressionConverter/LuExpressionConverterOptions.cs
  32. 5
    5
      Luticate2.Auth/Utils/Business/ExpressionConverter/LuExpressionConverterVisitor.cs
  33. 4
    4
      Luticate2.Auth/Utils/Business/ExpressionConverter/LuExpressionParamReplaceVisitor.cs
  34. 2
    2
      Luticate2.Auth/Utils/Business/Fields/LuFieldsExtensions.cs
  35. 5
    5
      Luticate2.Auth/Utils/Business/Fields/LuPartialFieldsParser.cs
  36. 5
    9
      Luticate2.Auth/Utils/Business/LuExpressionUtils.cs
  37. 2
    2
      Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptor.cs
  38. 1
    1
      Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptorDbSet.cs
  39. 1
    3
      Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptorEnumerable.cs
  40. 2
    2
      Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptorIdentity.cs
  41. 4
    4
      Luticate2.Auth/Utils/Business/Pagination/LuFilterParser.cs
  42. 6
    6
      Luticate2.Auth/Utils/Business/Pagination/LuOrderByParser.cs
  43. 7
    7
      Luticate2.Auth/Utils/Business/PartialObjectCopier/LuPartialObjectCopier.cs
  44. 1
    1
      Luticate2.Auth/Utils/Business/PartialObjectCopier/LuPartialObjectCopierExtensions.cs
  45. 1
    1
      Luticate2.Auth/Utils/Business/Serializers/PartialJson/LuJsonSerializerExtensions.cs
  46. 4
    4
      Luticate2.Auth/Utils/Business/Serializers/PartialJson/LuPartialJsonWriter.cs
  47. 1
    1
      Luticate2.Auth/Utils/Business/Serializers/PartialJson/LuSerializerContext.cs
  48. 2
    2
      Luticate2.Auth/Utils/Dbo/Fields/LuFieldDbo.cs
  49. 1
    1
      Luticate2.Auth/Utils/Dbo/Fields/LuPartialFieldsDbo.cs
  50. 2
    2
      Luticate2.Auth/Utils/Dbo/LuDboExtensions.cs
  51. 1
    1
      Luticate2.Auth/Utils/Dbo/Pagination/LuFilterDbo.cs
  52. 1
    1
      Luticate2.Auth/Utils/Dbo/Pagination/LuOrderByDbo.cs
  53. 2
    2
      Luticate2.Auth/Utils/Dbo/Pagination/LuOrderByFieldDbo.cs
  54. 1
    1
      Luticate2.Auth/Utils/Dbo/Pagination/LuPaginatedDbo.cs
  55. 1
    1
      Luticate2.Auth/Utils/Dbo/Pagination/LuPaginatedParamsDbo.cs
  56. 1
    1
      Luticate2.Auth/Utils/Dbo/PartialObjectCopier/LuPartialObjectCopierOptions.cs
  57. 1
    1
      Luticate2.Auth/Utils/Dbo/Result/LuResult.cs
  58. 1
    1
      Luticate2.Auth/Utils/Dbo/Result/LuStatus.cs
  59. 2
    2
      Luticate2.Auth/Utils/Exceptions/LuExceptionsExtensions.cs
  60. 2
    2
      Luticate2.Auth/Utils/Exceptions/LuResultException.cs
  61. 4
    4
      Luticate2.Auth/Utils/Interfaces/ILuCrud.cs
  62. 1
    1
      Luticate2.Auth/Utils/Interfaces/ILuObjectConverterDescriptor.cs
  63. 4
    4
      Luticate2.Auth/Utils/Interfaces/ILuPartialObjectCopier.cs
  64. 0
    1
      Luticate2.Mvc.Auth.Tests/UnitTest1.cs
  65. 1
    4
      Luticate2.Mvc.Auth.WebApiSample/Controllers/ValuesController.cs
  66. 1
    8
      Luticate2.Mvc.Auth.WebApiSample/Program.cs
  67. 1
    7
      Luticate2.Mvc.Auth.WebApiSample/Startup.cs
  68. 1
    3
      Luticate2.Mvc.Auth/Class1.cs
  69. 2
    1
      luticate2.sln.DotSettings.user

+ 77
- 76
.idea/.idea.luticate2/.idea/contentModel.xml View File

11
     <e p="$PROJECT_DIR$" t="IncludeFlat">
11
     <e p="$PROJECT_DIR$" t="IncludeFlat">
12
       <e p="Auth" t="Include" />
12
       <e p="Auth" t="Include" />
13
       <e p="Luticate2.Auth" t="IncludeRecursive">
13
       <e p="Luticate2.Auth" t="IncludeRecursive">
14
-        <e p="Business" t="Include">
15
-          <e p="Auth" t="Include">
14
+        <e p="Auth" t="Include">
15
+          <e p="Business" t="Include">
16
             <e p="LuGroupsBusiness.cs" t="Include" />
16
             <e p="LuGroupsBusiness.cs" t="Include" />
17
             <e p="PartialObjectCopier" t="Include">
17
             <e p="PartialObjectCopier" t="Include">
18
               <e p="LuPOCGroupsToDbo.cs" t="Include" />
18
               <e p="LuPOCGroupsToDbo.cs" t="Include" />
20
               <e p="LuPOCObjectsMetadataToDbo.cs" t="Include" />
20
               <e p="LuPOCObjectsMetadataToDbo.cs" t="Include" />
21
             </e>
21
             </e>
22
           </e>
22
           </e>
23
-          <e p="Crud" t="Include">
24
-            <e p="LuEfCrudBusiness.cs" t="Include" />
25
-          </e>
26
-          <e p="ExpressionConverter" t="Include">
27
-            <e p="LuExpressionConverterOptions.cs" t="Include" />
28
-            <e p="LuExpressionConverterVisitor.cs" t="Include" />
29
-            <e p="LuExpressionParamReplaceVisitor.cs" t="Include" />
30
-          </e>
31
-          <e p="Fields" t="Include">
32
-            <e p="LuFieldsExtensions.cs" t="Include" />
33
-            <e p="LuPartialFieldsParser.cs" t="Include" />
34
-          </e>
35
-          <e p="LuExpressionUtils.cs" t="Include" />
36
-          <e p="ObjectConverter" t="Include">
37
-            <e p="LuObjectConverterDescriptor.cs" t="Include" />
38
-            <e p="LuObjectConverterDescriptorDbSet.cs" t="Include" />
39
-            <e p="LuObjectConverterDescriptorEnumerable.cs" t="Include" />
40
-            <e p="LuObjectConverterDescriptorIdentity.cs" t="Include" />
41
-          </e>
42
-          <e p="Pagination" t="Include">
43
-            <e p="LuFilterParser.cs" t="Include" />
44
-            <e p="LuOrderByParser.cs" t="Include" />
45
-          </e>
46
-          <e p="PartialObjectCopier" t="Include">
47
-            <e p="LuPartialObjectCopier.cs" t="Include" />
48
-            <e p="LuPartialObjectCopierExtensions.cs" t="Include" />
49
-          </e>
50
-          <e p="Serializers" t="Include">
51
-            <e p="PartialJson" t="Include">
52
-              <e p="LuJsonSerializerExtensions.cs" t="Include" />
53
-              <e p="LuPartialJsonWriter.cs" t="Include" />
54
-              <e p="LuSerializerContext.cs" t="Include" />
23
+          <e p="DataAccess" t="Include">
24
+            <e p="Luticate2DbContext.cs" t="Include" />
25
+            <e p="Models" t="Include">
26
+              <e p="LuGroups.cs" t="Include" />
27
+              <e p="LuGroupsObjects.cs" t="Include" />
28
+              <e p="LuObjectsMetadata.cs" t="Include" />
29
+              <e p="LuUsers.cs" t="Include" />
30
+              <e p="TestTable.cs" t="Include" />
31
+              <e p="luticate2Context.cs" t="Include" />
55
             </e>
32
             </e>
56
           </e>
33
           </e>
57
-        </e>
58
-        <e p="DataAccess" t="Include">
59
-          <e p="Luticate2DbContext.cs" t="Include" />
60
-          <e p="Models" t="Include">
61
-            <e p="LuGroups.cs" t="Include" />
62
-            <e p="LuGroupsObjects.cs" t="Include" />
63
-            <e p="LuObjectsMetadata.cs" t="Include" />
64
-            <e p="LuUsers.cs" t="Include" />
65
-            <e p="TestTable.cs" t="Include" />
66
-            <e p="luticate2Context.cs" t="Include" />
67
-          </e>
68
-        </e>
69
-        <e p="Dbo" t="Include">
70
-          <e p="Auth" t="Include">
34
+          <e p="Dbo" t="Include">
71
             <e p="LuGroupDbo.cs" t="Include" />
35
             <e p="LuGroupDbo.cs" t="Include" />
72
             <e p="LuObjectDbo.cs" t="Include" />
36
             <e p="LuObjectDbo.cs" t="Include" />
73
             <e p="LuObjectsMetadataDbo.cs" t="Include" />
37
             <e p="LuObjectsMetadataDbo.cs" t="Include" />
74
           </e>
38
           </e>
75
-          <e p="Fields" t="Include">
76
-            <e p="LuFieldDbo.cs" t="Include" />
77
-            <e p="LuPartialFieldsDbo.cs" t="Include" />
39
+        </e>
40
+        <e p="Luticate2.Auth.csproj" t="IncludeRecursive" />
41
+        <e p="Utils" t="Include">
42
+          <e p="Business" t="Include">
43
+            <e p="Crud" t="Include">
44
+              <e p="LuEfCrudBusiness.cs" t="Include" />
45
+            </e>
46
+            <e p="ExpressionConverter" t="Include">
47
+              <e p="LuExpressionConverterOptions.cs" t="Include" />
48
+              <e p="LuExpressionConverterVisitor.cs" t="Include" />
49
+              <e p="LuExpressionParamReplaceVisitor.cs" t="Include" />
50
+            </e>
51
+            <e p="Fields" t="Include">
52
+              <e p="LuFieldsExtensions.cs" t="Include" />
53
+              <e p="LuPartialFieldsParser.cs" t="Include" />
54
+            </e>
55
+            <e p="LuExpressionUtils.cs" t="Include" />
56
+            <e p="ObjectConverterDescriptor" t="Include">
57
+              <e p="LuObjectConverterDescriptor.cs" t="Include" />
58
+              <e p="LuObjectConverterDescriptorDbSet.cs" t="Include" />
59
+              <e p="LuObjectConverterDescriptorEnumerable.cs" t="Include" />
60
+              <e p="LuObjectConverterDescriptorIdentity.cs" t="Include" />
61
+            </e>
62
+            <e p="Pagination" t="Include">
63
+              <e p="LuFilterParser.cs" t="Include" />
64
+              <e p="LuOrderByParser.cs" t="Include" />
65
+            </e>
66
+            <e p="PartialObjectCopier" t="Include">
67
+              <e p="LuPartialObjectCopier.cs" t="Include" />
68
+              <e p="LuPartialObjectCopierExtensions.cs" t="Include" />
69
+            </e>
70
+            <e p="Serializers" t="Include">
71
+              <e p="PartialJson" t="Include">
72
+                <e p="LuJsonSerializerExtensions.cs" t="Include" />
73
+                <e p="LuPartialJsonWriter.cs" t="Include" />
74
+                <e p="LuSerializerContext.cs" t="Include" />
75
+              </e>
76
+            </e>
78
           </e>
77
           </e>
79
-          <e p="LuDboExtensions.cs" t="Include" />
80
-          <e p="Pagination" t="Include">
81
-            <e p="LuFilterDbo.cs" t="Include" />
82
-            <e p="LuOrderByDbo.cs" t="Include" />
83
-            <e p="LuOrderByFieldDbo.cs" t="Include" />
84
-            <e p="LuPaginatedDbo.cs" t="Include" />
85
-            <e p="LuPaginatedParamsDbo.cs" t="Include" />
78
+          <e p="Dbo" t="Include">
79
+            <e p="Fields" t="Include">
80
+              <e p="LuFieldDbo.cs" t="Include" />
81
+              <e p="LuPartialFieldsDbo.cs" t="Include" />
82
+            </e>
83
+            <e p="LuDboExtensions.cs" t="Include" />
84
+            <e p="Pagination" t="Include">
85
+              <e p="LuFilterDbo.cs" t="Include" />
86
+              <e p="LuOrderByDbo.cs" t="Include" />
87
+              <e p="LuOrderByFieldDbo.cs" t="Include" />
88
+              <e p="LuPaginatedDbo.cs" t="Include" />
89
+              <e p="LuPaginatedParamsDbo.cs" t="Include" />
90
+            </e>
91
+            <e p="PartialObjectCopier" t="Include">
92
+              <e p="LuPartialObjectCopierOptions.cs" t="Include" />
93
+            </e>
94
+            <e p="Result" t="Include">
95
+              <e p="LuResult.cs" t="Include" />
96
+              <e p="LuStatus.cs" t="Include" />
97
+            </e>
86
           </e>
98
           </e>
87
-          <e p="PartialObjectCopier" t="Include">
88
-            <e p="LuPartialObjectCopierOptions.cs" t="Include" />
99
+          <e p="Exceptions" t="Include">
100
+            <e p="LuExceptionsExtensions.cs" t="Include" />
101
+            <e p="LuResultException.cs" t="Include" />
89
           </e>
102
           </e>
90
-          <e p="Result" t="Include">
91
-            <e p="LuResult.cs" t="Include" />
92
-            <e p="LuStatus.cs" t="Include" />
103
+          <e p="Interfaces" t="Include">
104
+            <e p="ILuCrud.cs" t="Include" />
105
+            <e p="ILuObjectConverterDescriptor.cs" t="Include" />
106
+            <e p="ILuPartialObjectCopier.cs" t="Include" />
93
           </e>
107
           </e>
94
         </e>
108
         </e>
95
-        <e p="Exceptions" t="Include">
96
-          <e p="LuExceptionsExtensions.cs" t="Include" />
97
-          <e p="LuResultException.cs" t="Include" />
98
-        </e>
99
-        <e p="Interfaces" t="Include">
100
-          <e p="ILuCrud.cs" t="Include" />
101
-          <e p="ILuExpressionConverter.cs" t="Include" />
102
-          <e p="ILuObjectConverterDescriptor.cs" t="Include" />
103
-          <e p="ILuOrderByObjectType.cs" t="Include" />
104
-          <e p="ILuPartialObjectCopier.cs" t="Include" />
105
-        </e>
106
-        <e p="Luticate2.Auth.csproj" t="IncludeRecursive" />
107
         <e p="bin" t="ExcludeRecursive" />
109
         <e p="bin" t="ExcludeRecursive" />
108
         <e p="obj" t="ExcludeRecursive">
110
         <e p="obj" t="ExcludeRecursive">
109
           <e p="Debug" t="Include">
111
           <e p="Debug" t="Include">
133
       <e p="Luticate2.Auth.Tests" t="IncludeRecursive">
135
       <e p="Luticate2.Auth.Tests" t="IncludeRecursive">
134
         <e p="Business" t="Include">
136
         <e p="Business" t="Include">
135
           <e p="Fields" t="Include">
137
           <e p="Fields" t="Include">
136
-            <e p="LuDboModelExpressionConverterTests.cs" t="Include" />
137
             <e p="LuFieldDboTests.cs" t="Include" />
138
             <e p="LuFieldDboTests.cs" t="Include" />
138
           </e>
139
           </e>
139
           <e p="LuExpressionUtilsTests.cs" t="Include" />
140
           <e p="LuExpressionUtilsTests.cs" t="Include" />

+ 4
- 4
Luticate2.Auth.ConsoleSample/Commands/CreateCommand.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Threading;
3
 using System.Threading;
4
 using System.Threading.Tasks;
4
 using System.Threading.Tasks;
5
-using Luticate2.Auth.Business.Auth;
6
-using Luticate2.Auth.Business.Fields;
7
-using Luticate2.Auth.Business.Serializers.PartialJson;
8
-using Luticate2.Auth.Dbo.Auth;
5
+using Luticate2.Auth.Auth.Business;
6
+using Luticate2.Auth.Auth.Dbo;
7
+using Luticate2.Auth.Utils.Business.Fields;
8
+using Luticate2.Auth.Utils.Business.Serializers.PartialJson;
9
 using Microsoft.Extensions.DependencyInjection;
9
 using Microsoft.Extensions.DependencyInjection;
10
 using NClap.Metadata;
10
 using NClap.Metadata;
11
 using Newtonsoft.Json;
11
 using Newtonsoft.Json;

+ 6
- 7
Luticate2.Auth.ConsoleSample/Commands/ListCommand.cs View File

2
 using System.Diagnostics;
2
 using System.Diagnostics;
3
 using System.Threading;
3
 using System.Threading;
4
 using System.Threading.Tasks;
4
 using System.Threading.Tasks;
5
-using Luticate2.Auth.Business.Auth;
6
-using Luticate2.Auth.Business.Pagination;
7
-using Luticate2.Auth.Business.Fields;
8
-using Luticate2.Auth.Business.Serializers.PartialJson;
9
-using Luticate2.Auth.DataAccess.Models;
10
-using Luticate2.Auth.Dbo.Auth;
11
-using Luticate2.Auth.Dbo.Pagination;
5
+using Luticate2.Auth.Auth.Business;
6
+using Luticate2.Auth.Auth.Dbo;
7
+using Luticate2.Auth.Utils.Business.Fields;
8
+using Luticate2.Auth.Utils.Business.Pagination;
9
+using Luticate2.Auth.Utils.Business.Serializers.PartialJson;
10
+using Luticate2.Auth.Utils.Dbo.Pagination;
12
 using Microsoft.Extensions.DependencyInjection;
11
 using Microsoft.Extensions.DependencyInjection;
13
 using NClap.Metadata;
12
 using NClap.Metadata;
14
 using Newtonsoft.Json;
13
 using Newtonsoft.Json;

+ 1
- 1
Luticate2.Auth.ConsoleSample/LuExtenstions.cs View File

1
 using System;
1
 using System;
2
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Utils.Dbo.Result;
3
 
3
 
4
 namespace Luticate2.Auth.ConsoleSample
4
 namespace Luticate2.Auth.ConsoleSample
5
 {
5
 {

+ 6
- 8
Luticate2.Auth.ConsoleSample/Program.cs View File

1
 using System;
1
 using System;
2
-using System.Collections.Generic;
3
-using Luticate2.Auth.Business.Auth;
4
-using Luticate2.Auth.Business.Auth.PartialObjectCopier;
2
+using Luticate2.Auth.Auth.Business;
3
+using Luticate2.Auth.Auth.Business.PartialObjectCopier;
4
+using Luticate2.Auth.Auth.DataAccess;
5
+using Luticate2.Auth.Auth.DataAccess.Models;
6
+using Luticate2.Auth.Auth.Dbo;
5
 using Luticate2.Auth.ConsoleSample.Commands;
7
 using Luticate2.Auth.ConsoleSample.Commands;
6
-using Luticate2.Auth.DataAccess;
7
-using Luticate2.Auth.DataAccess.Models;
8
-using Luticate2.Auth.Dbo.Auth;
9
-using Luticate2.Auth.Interfaces;
8
+using Luticate2.Auth.Utils.Interfaces;
10
 using Microsoft.EntityFrameworkCore;
9
 using Microsoft.EntityFrameworkCore;
11
 using Microsoft.Extensions.DependencyInjection;
10
 using Microsoft.Extensions.DependencyInjection;
12
-using Microsoft.Extensions.DependencyInjection.Extensions;
13
 using NClap.Metadata;
11
 using NClap.Metadata;
14
 using NClap.Repl;
12
 using NClap.Repl;
15
 
13
 

+ 0
- 179
Luticate2.Auth.Tests/Business/Fields/LuDboModelExpressionConverterTests.cs View File

1
-using System;
2
-using System.Collections.Generic;
3
-using System.Linq.Expressions;
4
-using System.Reflection;
5
-using Luticate2.Auth.Business;
6
-using Luticate2.Auth.Business.Fields;
7
-using Luticate2.Auth.Business.ObjectConverter;
8
-using Luticate2.Auth.Dbo;
9
-using Luticate2.Auth.Dbo.Result;
10
-using Luticate2.Auth.Interfaces;
11
-using Microsoft.Extensions.DependencyInjection;
12
-using Xunit;
13
-
14
-namespace Luticate2.Auth.Tests.Business.Fields
15
-{
16
-    public static class StaticDbo
17
-    {
18
-        public static bool StaticField;
19
-
20
-        public static bool StaticProperty { get; set; }
21
-    }
22
-
23
-    public class TestDbo1
24
-    {
25
-        public Guid Id { get; set; }
26
-
27
-        public string Name { get; set; }
28
-
29
-        public IList<TestDbo2> TestDbo2s { get; set; }
30
-
31
-        public string ToString()
32
-        {
33
-            throw new NotImplementedException();
34
-        }
35
-    }
36
-
37
-    public class TestDbo2
38
-    {
39
-        public Guid Id { get; set; }
40
-
41
-        public string Name { get; set; }
42
-
43
-        public string NameVirtual { get; set; }
44
-
45
-        public TestDbo1 TestDbo1 { get; set; }
46
-
47
-        public TestDbo2 Parent { get; set; }
48
-
49
-        public TestModel1 Unused { get; set; }
50
-    }
51
-
52
-    public class TestModel1
53
-    {
54
-        public Guid id { get; set; }
55
-
56
-        public string name { get; set; }
57
-
58
-        public ICollection<TestModel2> test_model2 { get; set; }
59
-    }
60
-
61
-    public class TestModel2
62
-    {
63
-        public Guid id { get; set; }
64
-
65
-        public string name { get; set; }
66
-
67
-        public Guid test_model1_id { get; set; }
68
-
69
-        public TestModel1 test_model1 { get; set; }
70
-
71
-        public TestModel2 parent { get; set; }
72
-    }
73
-
74
-    public class LuDMECTest1 : LuObjectConverterDescriptor<TestDbo1, TestModel1>
75
-    {
76
-        public LuDMECTest1()
77
-        {
78
-            AddMemberConverter(x => x.Id, y => y.id, PropertyType.Value);
79
-            AddMemberConverter(x => x.Name, y => y.name, PropertyType.Value);
80
-            AddMemberConverter(x => x.TestDbo2s, y => y.test_model2, PropertyType.Object);
81
-            AddStaticMethodConverter(
82
-                (Expression<Func<TestDbo1, string>>)(x => x.ToString()),
83
-                (Expression<Func<TestModel1, string>>)(x => x.id + ": " + x.name)
84
-            );
85
-        }
86
-    }
87
-
88
-    public class LuDMECTest2 : LuObjectConverterDescriptor<TestDbo2, TestModel2>
89
-    {
90
-        public LuDMECTest2()
91
-        {
92
-            AddMemberConverter(x => x.Id, y => y.id, PropertyType.Value);
93
-            AddMemberConverter(x => x.Name, y => y.name, PropertyType.Value);
94
-            AddMemberConverter(x => x.NameVirtual, y => y.name + " " + y.name, PropertyType.Value);
95
-            AddMemberConverter(x => x.TestDbo1, y => y.test_model1, PropertyType.Object);
96
-            AddMemberConverter(x => x.Parent, y => y.parent, PropertyType.Object);
97
-        }
98
-    }
99
-
100
-    public class LuDboModelExpressionConverterTests
101
-    {
102
-        public IServiceProvider GetServiceProvider()
103
-        {
104
-            var services = new ServiceCollection();
105
-//            services.AddSingleton<ILuExpressionConverter<TestDbo1, TestModel1>, LuDMECTest1>();
106
-//            services.AddSingleton<ILuExpressionConverter<TestDbo2, TestModel2>, LuDMECTest2>();
107
-//            services.AddSingleton<ILuExpressionConverter<string, string>, LuExpressionConverterIdentity<string>>();
108
-//            services.AddSingleton<ILuExpressionConverter<Guid, Guid>, LuExpressionConverterIdentity<Guid>>();
109
-
110
-            var serviceProvider = services.BuildServiceProvider();
111
-            return serviceProvider;
112
-        }
113
-
114
-//        [Fact]
115
-//        public void Test0()
116
-//        {
117
-//            var serviceProvider = GetServiceProvider();
118
-//            var converter = serviceProvider.GetService<ILuDboModelExpressionConverter<TestDbo1, TestModel1>>();
119
-//            Expression<Func<TestDbo1, TestDbo1>> expDbo = (x => x);
120
-//            Expression<Func<TestModel1, object>> expModel = (x => (object) x);
121
-//            var convertResult = converter.ConvertLamdba(expDbo);
122
-//            Assert.Equal(LuStatus.Success.ToInt(), convertResult.Status);
123
-//            Assert.NotNull(convertResult.Data);
124
-//            Assert.Equal(expModel.ToString(), convertResult.Data.ToString());
125
-//        }
126
-//
127
-//        [Fact]
128
-//        public void Test1()
129
-//        {
130
-//            var serviceProvider = GetServiceProvider();
131
-//            var converter = serviceProvider.GetService<ILuDboModelExpressionConverter<TestDbo1, TestModel1>>();
132
-//            Expression<Func<TestDbo1, Guid>> expDbo = (x => x.Id);
133
-//            Expression<Func<TestModel1, object>> expModel = (x => (object) x.Id);
134
-//            var convertResult = converter.ConvertLamdba(expDbo);
135
-//            Assert.Equal(LuStatus.Success.ToInt(), convertResult.Status);
136
-//            Assert.NotNull(convertResult.Data);
137
-//            Assert.Equal(expModel.ToString(), convertResult.Data.ToString());
138
-//        }
139
-//
140
-//        [Fact]
141
-//        public void Test2()
142
-//        {
143
-//            var serviceProvider = GetServiceProvider();
144
-//            var converter = serviceProvider.GetService<ILuDboModelExpressionConverter<TestDbo2, TestModel2>>();
145
-//            Expression<Func<TestDbo2, Guid>> expDbo = (x => x.TestDbo1.Id);
146
-//            Expression<Func<TestModel2, object>> expModel = (x => (object) x.TestModel1.Id);
147
-//            var convertResult = converter.ConvertLamdba(expDbo);
148
-//            Assert.Equal(LuStatus.Success.ToInt(), convertResult.Status);
149
-//            Assert.NotNull(convertResult.Data);
150
-//            Assert.Equal(expModel.ToString(), convertResult.Data.ToString());
151
-//        }
152
-//
153
-//        [Fact]
154
-//        public void Test3()
155
-//        {
156
-//            var serviceProvider = GetServiceProvider();
157
-//            var converter = serviceProvider.GetService<ILuDboModelExpressionConverter<TestDbo2, TestModel2>>();
158
-//            Expression<Func<TestDbo2, int>> expDbo = (x => x.TestDbo1.Name.Length);
159
-//            Expression<Func<TestModel2, object>> expModel = (x => (object) x.TestModel1.Name.Length);
160
-//            var convertResult = converter.ConvertLamdba(expDbo);
161
-//            Assert.Equal(LuStatus.Success.ToInt(), convertResult.Status);
162
-//            Assert.NotNull(convertResult.Data);
163
-//            Assert.Equal(expModel.ToString(), convertResult.Data.ToString());
164
-//        }
165
-//
166
-//        [Fact]
167
-//        public void Test4()
168
-//        {
169
-//            var serviceProvider = GetServiceProvider();
170
-//            var converter = serviceProvider.GetService<ILuDboModelExpressionConverter<TestDbo2, TestModel2>>();
171
-//            Expression<Func<TestDbo2, bool>> expDbo = (x => x.TestDbo1.Name.Length == 0 || x.Name.Length != 0);
172
-//            Expression<Func<TestModel2, object>> expModel = (x => (object) (x.TestModel1.Name.Length == 0 || x.Name.Length != 0));
173
-//            var convertResult = converter.ConvertLamdba(expDbo);
174
-//            Assert.Equal(LuStatus.Success.ToInt(), convertResult.Status);
175
-//            Assert.NotNull(convertResult.Data);
176
-//            Assert.Equal(expModel.ToString(), convertResult.Data.ToString());
177
-//        }
178
-    }
179
-}

+ 2
- 2
Luticate2.Auth.Tests/Business/Fields/LuFieldDboTests.cs View File

1
 using System.Linq;
1
 using System.Linq;
2
-using Luticate2.Auth.Business.Fields;
3
-using Luticate2.Auth.Dbo.Fields;
2
+using Luticate2.Auth.Utils.Business.Fields;
3
+using Luticate2.Auth.Utils.Dbo.Fields;
4
 using Xunit;
4
 using Xunit;
5
 
5
 
6
 namespace Luticate2.Auth.Tests.Business.Fields
6
 namespace Luticate2.Auth.Tests.Business.Fields

+ 1
- 1
Luticate2.Auth.Tests/Business/LuExpressionUtilsTests.cs View File

1
 using System;
1
 using System;
2
 using System.Linq;
2
 using System.Linq;
3
 using System.Linq.Expressions;
3
 using System.Linq.Expressions;
4
-using Luticate2.Auth.Business;
4
+using Luticate2.Auth.Utils.Business;
5
 using Xunit;
5
 using Xunit;
6
 
6
 
7
 namespace Luticate2.Auth.Tests.Business
7
 namespace Luticate2.Auth.Tests.Business

+ 3
- 3
Luticate2.Auth.Tests/Business/ObjectConverter/ObjectConverterTests.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
-using Luticate2.Auth.Business.ExpressionConverter;
6
-using Luticate2.Auth.Business.ObjectConverter;
7
-using Luticate2.Auth.Interfaces;
5
+using Luticate2.Auth.Utils.Business.ExpressionConverter;
6
+using Luticate2.Auth.Utils.Business.ObjectConverterDescriptor;
7
+using Luticate2.Auth.Utils.Interfaces;
8
 using Microsoft.Extensions.DependencyInjection;
8
 using Microsoft.Extensions.DependencyInjection;
9
 using Xunit;
9
 using Xunit;
10
 
10
 

+ 1
- 1
Luticate2.Auth.Tests/Business/ObjectConverter/Objects.cs View File

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq.Expressions;
3
 using System.Linq.Expressions;
4
-using Luticate2.Auth.Business.ObjectConverter;
4
+using Luticate2.Auth.Utils.Business.ObjectConverterDescriptor;
5
 
5
 
6
 namespace Luticate2.Auth.Tests.Business.ObjectConverter
6
 namespace Luticate2.Auth.Tests.Business.ObjectConverter
7
 {
7
 {

+ 4
- 4
Luticate2.Auth.Tests/Business/Pagination/LuFilterTests.cs View File

1
-using Luticate2.Auth.Business.Pagination;
2
-using Luticate2.Auth.Dbo;
3
-using Luticate2.Auth.Dbo.Auth;
4
-using Luticate2.Auth.Dbo.Result;
1
+using Luticate2.Auth.Auth.Dbo;
2
+using Luticate2.Auth.Utils.Business.Pagination;
3
+using Luticate2.Auth.Utils.Dbo;
4
+using Luticate2.Auth.Utils.Dbo.Result;
5
 using Xunit;
5
 using Xunit;
6
 
6
 
7
 namespace Luticate2.Auth.Tests.Business.Pagination
7
 namespace Luticate2.Auth.Tests.Business.Pagination

+ 1
- 13
Luticate2.Auth.Tests/RandomTests.cs View File

1
-using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Linq.Expressions;
5
-using Luticate2.Auth.Business.ExpressionConverter;
6
-using Luticate2.Auth.Business.ObjectConverter;
7
-using Luticate2.Auth.DataAccess.Models;
8
-using Luticate2.Auth.Interfaces;
9
-using Luticate2.Auth.Tests.Business.Fields;
10
-using Microsoft.Extensions.DependencyInjection;
11
-using Xunit;
12
-
13
-namespace Luticate2.Auth.Tests
1
+namespace Luticate2.Auth.Tests
14
 {
2
 {
15
     public class RandomTests
3
     public class RandomTests
16
     {
4
     {

Luticate2.Auth/Business/Auth/LuGroupsBusiness.cs → Luticate2.Auth/Auth/Business/LuGroupsBusiness.cs View File

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq;
3
 using System.Linq;
4
-using Luticate2.Auth.Business.Crud;
5
-using Luticate2.Auth.Business.Fields;
6
-using Luticate2.Auth.DataAccess;
7
-using Luticate2.Auth.DataAccess.Models;
8
-using Luticate2.Auth.Dbo.Auth;
9
-using Luticate2.Auth.Dbo.Fields;
10
-using Luticate2.Auth.Dbo.Result;
4
+using Luticate2.Auth.Auth.DataAccess;
5
+using Luticate2.Auth.Auth.DataAccess.Models;
6
+using Luticate2.Auth.Auth.Dbo;
7
+using Luticate2.Auth.Utils.Business.Crud;
8
+using Luticate2.Auth.Utils.Business.Fields;
9
+using Luticate2.Auth.Utils.Dbo.Fields;
10
+using Luticate2.Auth.Utils.Dbo.Result;
11
 using Microsoft.EntityFrameworkCore;
11
 using Microsoft.EntityFrameworkCore;
12
 
12
 
13
-namespace Luticate2.Auth.Business.Auth
13
+namespace Luticate2.Auth.Auth.Business
14
 {
14
 {
15
     public class LuGroupsBusiness : LuEfCrudBusiness<LuGroupDbo, LuGroups, Luticate2DbContext>
15
     public class LuGroupsBusiness : LuEfCrudBusiness<LuGroupDbo, LuGroups, Luticate2DbContext>
16
     {
16
     {

Luticate2.Auth/Business/Auth/PartialObjectCopier/LuPOCGroupsToDbo.cs → Luticate2.Auth/Auth/Business/PartialObjectCopier/LuPOCGroupsToDbo.cs View File

1
 using System;
1
 using System;
2
-using Luticate2.Auth.Business.PartialObjectCopier;
3
-using Luticate2.Auth.DataAccess.Models;
4
-using Luticate2.Auth.Dbo.Auth;
5
-using Luticate2.Auth.Dbo.Fields;
6
-using Luticate2.Auth.Dbo.PartialObjectCopier;
7
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Auth.DataAccess.Models;
3
+using Luticate2.Auth.Auth.Dbo;
4
+using Luticate2.Auth.Utils.Business.PartialObjectCopier;
5
+using Luticate2.Auth.Utils.Dbo.Fields;
6
+using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
7
+using Luticate2.Auth.Utils.Dbo.Result;
8
 
8
 
9
-namespace Luticate2.Auth.Business.Auth.PartialObjectCopier
9
+namespace Luticate2.Auth.Auth.Business.PartialObjectCopier
10
 {
10
 {
11
     public class LuPOCGroupsToDbo : LuPartialObjectCopier<LuGroups, LuGroupDbo>
11
     public class LuPOCGroupsToDbo : LuPartialObjectCopier<LuGroups, LuGroupDbo>
12
     {
12
     {

Luticate2.Auth/Business/Auth/PartialObjectCopier/LuPOCGroupsToModel.cs → Luticate2.Auth/Auth/Business/PartialObjectCopier/LuPOCGroupsToModel.cs View File

1
 using System;
1
 using System;
2
-using Luticate2.Auth.Business.PartialObjectCopier;
3
-using Luticate2.Auth.DataAccess.Models;
4
-using Luticate2.Auth.Dbo.Auth;
5
-using Luticate2.Auth.Dbo.Fields;
6
-using Luticate2.Auth.Dbo.PartialObjectCopier;
7
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Auth.DataAccess.Models;
3
+using Luticate2.Auth.Auth.Dbo;
4
+using Luticate2.Auth.Utils.Business.PartialObjectCopier;
5
+using Luticate2.Auth.Utils.Dbo.Fields;
6
+using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
7
+using Luticate2.Auth.Utils.Dbo.Result;
8
 
8
 
9
-namespace Luticate2.Auth.Business.Auth.PartialObjectCopier
9
+namespace Luticate2.Auth.Auth.Business.PartialObjectCopier
10
 {
10
 {
11
     public class LuPOCGroupsToModel : LuPartialObjectCopier<LuGroupDbo, LuGroups>
11
     public class LuPOCGroupsToModel : LuPartialObjectCopier<LuGroupDbo, LuGroups>
12
     {
12
     {

Luticate2.Auth/Business/Auth/PartialObjectCopier/LuPOCObjectsMetadataToDbo.cs → Luticate2.Auth/Auth/Business/PartialObjectCopier/LuPOCObjectsMetadataToDbo.cs View File

1
 using System;
1
 using System;
2
-using Luticate2.Auth.Business.PartialObjectCopier;
3
-using Luticate2.Auth.DataAccess.Models;
4
-using Luticate2.Auth.Dbo.Auth;
5
-using Luticate2.Auth.Dbo.Fields;
6
-using Luticate2.Auth.Dbo.PartialObjectCopier;
7
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Auth.DataAccess.Models;
3
+using Luticate2.Auth.Auth.Dbo;
4
+using Luticate2.Auth.Utils.Business.PartialObjectCopier;
5
+using Luticate2.Auth.Utils.Dbo.Fields;
6
+using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
7
+using Luticate2.Auth.Utils.Dbo.Result;
8
 
8
 
9
-namespace Luticate2.Auth.Business.Auth.PartialObjectCopier
9
+namespace Luticate2.Auth.Auth.Business.PartialObjectCopier
10
 {
10
 {
11
     public class LuPOCObjectsMetadataToDbo : LuPartialObjectCopier<LuObjectsMetadata, LuObjectsMetadataDbo>
11
     public class LuPOCObjectsMetadataToDbo : LuPartialObjectCopier<LuObjectsMetadata, LuObjectsMetadataDbo>
12
     {
12
     {

Luticate2.Auth/DataAccess/Luticate2DbContext.cs → Luticate2.Auth/Auth/DataAccess/Luticate2DbContext.cs View File

1
-using Luticate2.Auth.DataAccess.Models;
1
+using Luticate2.Auth.Auth.DataAccess.Models;
2
 using Microsoft.EntityFrameworkCore;
2
 using Microsoft.EntityFrameworkCore;
3
 
3
 
4
-namespace Luticate2.Auth.DataAccess
4
+namespace Luticate2.Auth.Auth.DataAccess
5
 {
5
 {
6
     public class Luticate2DbContext : DbContext
6
     public class Luticate2DbContext : DbContext
7
     {
7
     {

Luticate2.Auth/DataAccess/Models/LuGroups.cs → Luticate2.Auth/Auth/DataAccess/Models/LuGroups.cs View File

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 
3
 
4
-namespace Luticate2.Auth.DataAccess.Models
4
+namespace Luticate2.Auth.Auth.DataAccess.Models
5
 {
5
 {
6
     public partial class LuGroups
6
     public partial class LuGroups
7
     {
7
     {

Luticate2.Auth/DataAccess/Models/LuGroupsObjects.cs → Luticate2.Auth/Auth/DataAccess/Models/LuGroupsObjects.cs View File

1
 using System;
1
 using System;
2
 
2
 
3
-namespace Luticate2.Auth.DataAccess.Models
3
+namespace Luticate2.Auth.Auth.DataAccess.Models
4
 {
4
 {
5
     public partial class LuGroupsObjects
5
     public partial class LuGroupsObjects
6
     {
6
     {

Luticate2.Auth/DataAccess/Models/LuObjectsMetadata.cs → Luticate2.Auth/Auth/DataAccess/Models/LuObjectsMetadata.cs View File

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 
3
 
4
-namespace Luticate2.Auth.DataAccess.Models
4
+namespace Luticate2.Auth.Auth.DataAccess.Models
5
 {
5
 {
6
     public partial class LuObjectsMetadata
6
     public partial class LuObjectsMetadata
7
     {
7
     {

Luticate2.Auth/DataAccess/Models/LuUsers.cs → Luticate2.Auth/Auth/DataAccess/Models/LuUsers.cs View File

1
 using System;
1
 using System;
2
 
2
 
3
-namespace Luticate2.Auth.DataAccess.Models
3
+namespace Luticate2.Auth.Auth.DataAccess.Models
4
 {
4
 {
5
     public partial class LuUsers
5
     public partial class LuUsers
6
     {
6
     {

Luticate2.Auth/DataAccess/Models/TestTable.cs → Luticate2.Auth/Auth/DataAccess/Models/TestTable.cs View File

1
 using System;
1
 using System;
2
 
2
 
3
-namespace Luticate2.Auth.DataAccess.Models
3
+namespace Luticate2.Auth.Auth.DataAccess.Models
4
 {
4
 {
5
     public partial class TestTable
5
     public partial class TestTable
6
     {
6
     {

Luticate2.Auth/DataAccess/Models/luticate2Context.cs → Luticate2.Auth/Auth/DataAccess/Models/luticate2Context.cs View File

1
 using Microsoft.EntityFrameworkCore;
1
 using Microsoft.EntityFrameworkCore;
2
 
2
 
3
-namespace Luticate2.Auth.DataAccess.Models
3
+namespace Luticate2.Auth.Auth.DataAccess.Models
4
 {
4
 {
5
     public partial class luticate2Context : DbContext
5
     public partial class luticate2Context : DbContext
6
     {
6
     {

Luticate2.Auth/Dbo/Auth/LuGroupDbo.cs → Luticate2.Auth/Auth/Dbo/LuGroupDbo.cs View File

1
-namespace Luticate2.Auth.Dbo.Auth
1
+namespace Luticate2.Auth.Auth.Dbo
2
 {
2
 {
3
     public class LuGroupDbo : LuObjectDbo
3
     public class LuGroupDbo : LuObjectDbo
4
     {
4
     {

Luticate2.Auth/Dbo/Auth/LuObjectDbo.cs → Luticate2.Auth/Auth/Dbo/LuObjectDbo.cs View File

1
 using System;
1
 using System;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Auth
3
+namespace Luticate2.Auth.Auth.Dbo
4
 {
4
 {
5
     public class LuObjectDbo
5
     public class LuObjectDbo
6
     {
6
     {

Luticate2.Auth/Dbo/Auth/LuObjectsMetadataDbo.cs → Luticate2.Auth/Auth/Dbo/LuObjectsMetadataDbo.cs View File

1
 using System;
1
 using System;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Auth
3
+namespace Luticate2.Auth.Auth.Dbo
4
 {
4
 {
5
     public class LuObjectsMetadataDbo
5
     public class LuObjectsMetadataDbo
6
     {
6
     {

+ 0
- 20
Luticate2.Auth/Interfaces/ILuExpressionConverter.cs View File

1
-using System.Collections.Generic;
2
-using System.Linq.Expressions;
3
-using Luticate2.Auth.Business.ExpressionConverter;
4
-using Luticate2.Auth.Dbo.Result;
5
-
6
-namespace Luticate2.Auth.Interfaces
7
-{
8
-    public interface ILuExpressionConverter
9
-    {
10
-        LuResult<Expression> ConvertExpression(Stack<Expression> expressions, Expression baseExpression, LuExpressionConverterOptions options);
11
-    }
12
-
13
-    public interface ILuExpressionConverter<TTypeFrom> : ILuExpressionConverter
14
-    {
15
-    }
16
-
17
-    public interface ILuExpressionConverter<TTypeFrom, TTypeTo> : ILuExpressionConverter<TTypeFrom>
18
-    {
19
-    }
20
-}

+ 0
- 14
Luticate2.Auth/Interfaces/ILuOrderByObjectType.cs View File

1
-using System;
2
-using System.Linq;
3
-using System.Linq.Expressions;
4
-using Luticate2.Auth.Dbo.Pagination;
5
-using Luticate2.Auth.Dbo.Result;
6
-
7
-namespace Luticate2.Auth.Interfaces
8
-{
9
-    public interface ILuOrderByObjectType<TType>
10
-    {
11
-        LuResult<IQueryable<TModel>> OrderByField<TModel, TType2>(Expression<Func<TModel, TType2>> modelProperty,
12
-            LuOrderByFieldDbo orderByfield, IQueryable<TModel> queryable);
13
-    }
14
-}

+ 1
- 2
Luticate2.Auth/Luticate2.Auth.csproj View File

3
     <TargetFramework>netcoreapp2.1</TargetFramework>
3
     <TargetFramework>netcoreapp2.1</TargetFramework>
4
   </PropertyGroup>
4
   </PropertyGroup>
5
   <ItemGroup>
5
   <ItemGroup>
6
-    <Folder Include="Business\Serializers" />
7
-    <Folder Include="DataAccess\Models" />
6
+    <Folder Include="Utils" />
8
   </ItemGroup>
7
   </ItemGroup>
9
   <ItemGroup>
8
   <ItemGroup>
10
     <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="2.8.2" />
9
     <PackageReference Include="Microsoft.CodeAnalysis.CSharp.Scripting" Version="2.8.2" />

Luticate2.Auth/Business/Crud/LuEfCrudBusiness.cs → Luticate2.Auth/Utils/Business/Crud/LuEfCrudBusiness.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
-using Luticate2.Auth.Business.ExpressionConverter;
6
-using Luticate2.Auth.Dbo;
7
-using Luticate2.Auth.Dbo.Fields;
8
-using Luticate2.Auth.Dbo.Pagination;
9
-using Luticate2.Auth.Dbo.PartialObjectCopier;
10
-using Luticate2.Auth.Dbo.Result;
11
-using Luticate2.Auth.Interfaces;
5
+using Luticate2.Auth.Utils.Business.ExpressionConverter;
6
+using Luticate2.Auth.Utils.Dbo;
7
+using Luticate2.Auth.Utils.Dbo.Fields;
8
+using Luticate2.Auth.Utils.Dbo.Pagination;
9
+using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
10
+using Luticate2.Auth.Utils.Dbo.Result;
11
+using Luticate2.Auth.Utils.Interfaces;
12
 using Microsoft.EntityFrameworkCore;
12
 using Microsoft.EntityFrameworkCore;
13
 using Microsoft.Extensions.DependencyInjection;
13
 using Microsoft.Extensions.DependencyInjection;
14
 
14
 
15
-namespace Luticate2.Auth.Business.Crud
15
+namespace Luticate2.Auth.Utils.Business.Crud
16
 {
16
 {
17
     public class LuEfCrudBusiness<TDbo, TModel, TDbContext> : ILuCrud<TDbo>
17
     public class LuEfCrudBusiness<TDbo, TModel, TDbContext> : ILuCrud<TDbo>
18
         where TModel : class
18
         where TModel : class

Luticate2.Auth/Business/ExpressionConverter/LuExpressionConverterOptions.cs → Luticate2.Auth/Utils/Business/ExpressionConverter/LuExpressionConverterOptions.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq.Expressions;
3
 using System.Linq.Expressions;
4
 
4
 
5
-namespace Luticate2.Auth.Business.ExpressionConverter
5
+namespace Luticate2.Auth.Utils.Business.ExpressionConverter
6
 {
6
 {
7
     public class LuExpressionConverterOptions
7
     public class LuExpressionConverterOptions
8
     {
8
     {

Luticate2.Auth/Business/ExpressionConverter/LuExpressionConverterVisitor.cs → Luticate2.Auth/Utils/Business/ExpressionConverter/LuExpressionConverterVisitor.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
-using Luticate2.Auth.Dbo;
6
-using Luticate2.Auth.Dbo.Result;
7
-using Luticate2.Auth.Exceptions;
8
-using Luticate2.Auth.Interfaces;
5
+using Luticate2.Auth.Utils.Dbo;
6
+using Luticate2.Auth.Utils.Dbo.Result;
7
+using Luticate2.Auth.Utils.Exceptions;
8
+using Luticate2.Auth.Utils.Interfaces;
9
 
9
 
10
-namespace Luticate2.Auth.Business.ExpressionConverter
10
+namespace Luticate2.Auth.Utils.Business.ExpressionConverter
11
 {
11
 {
12
     public class LuExpressionConverterVisitor : ExpressionVisitor
12
     public class LuExpressionConverterVisitor : ExpressionVisitor
13
     {
13
     {

Luticate2.Auth/Business/ExpressionConverter/LuExpressionParamReplaceVisitor.cs → Luticate2.Auth/Utils/Business/ExpressionConverter/LuExpressionParamReplaceVisitor.cs View File

1
 using System.Linq.Expressions;
1
 using System.Linq.Expressions;
2
-using Luticate2.Auth.Dbo;
3
-using Luticate2.Auth.Dbo.Result;
4
-using Luticate2.Auth.Exceptions;
2
+using Luticate2.Auth.Utils.Dbo;
3
+using Luticate2.Auth.Utils.Dbo.Result;
4
+using Luticate2.Auth.Utils.Exceptions;
5
 
5
 
6
-namespace Luticate2.Auth.Business.ExpressionConverter
6
+namespace Luticate2.Auth.Utils.Business.ExpressionConverter
7
 {
7
 {
8
     public class LuExpressionParamReplaceVisitor : ExpressionVisitor
8
     public class LuExpressionParamReplaceVisitor : ExpressionVisitor
9
     {
9
     {

Luticate2.Auth/Business/Fields/LuFieldsExtensions.cs → Luticate2.Auth/Utils/Business/Fields/LuFieldsExtensions.cs View File

3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
 using System.Text.RegularExpressions;
5
 using System.Text.RegularExpressions;
6
-using Luticate2.Auth.Dbo.Fields;
6
+using Luticate2.Auth.Utils.Dbo.Fields;
7
 
7
 
8
-namespace Luticate2.Auth.Business.Fields
8
+namespace Luticate2.Auth.Utils.Business.Fields
9
 {
9
 {
10
     public static class LuFieldsExtensions
10
     public static class LuFieldsExtensions
11
     {
11
     {

Luticate2.Auth/Business/Fields/LuPartialFieldsParser.cs → Luticate2.Auth/Utils/Business/Fields/LuPartialFieldsParser.cs View File

1
 using System.Linq;
1
 using System.Linq;
2
-using Luticate2.Auth.Dbo;
3
-using Luticate2.Auth.Dbo.Fields;
4
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Utils.Dbo;
3
+using Luticate2.Auth.Utils.Dbo.Fields;
4
+using Luticate2.Auth.Utils.Dbo.Result;
5
 
5
 
6
-namespace Luticate2.Auth.Business.Fields
6
+namespace Luticate2.Auth.Utils.Business.Fields
7
 {
7
 {
8
-    public class LuPartialFieldsParser
8
+    public static class LuPartialFieldsParser
9
     {
9
     {
10
         public static LuResult<LuPartialFieldsDbo> Parse(string fields)
10
         public static LuResult<LuPartialFieldsDbo> Parse(string fields)
11
         {
11
         {

Luticate2.Auth/Business/LuExpressionUtils.cs → Luticate2.Auth/Utils/Business/LuExpressionUtils.cs View File

3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
 using System.Reflection;
5
 using System.Reflection;
6
-using Luticate2.Auth.Dbo;
7
-using Luticate2.Auth.Dbo.Result;
6
+using Luticate2.Auth.Utils.Dbo;
7
+using Luticate2.Auth.Utils.Dbo.Result;
8
 
8
 
9
-namespace Luticate2.Auth.Business
9
+namespace Luticate2.Auth.Utils.Business
10
 {
10
 {
11
     public static class LuExpressionUtils
11
     public static class LuExpressionUtils
12
     {
12
     {
88
 
88
 
89
         public static MemberInfo GetSingleMemberFromExpression(LambdaExpression property)
89
         public static MemberInfo GetSingleMemberFromExpression(LambdaExpression property)
90
         {
90
         {
91
-            var memberExpression = GetFromConvert(property) as MemberExpression;
92
-
93
-            if (memberExpression != null &&
91
+            if (GetFromConvert(property) is MemberExpression memberExpression &&
94
                 (memberExpression.Expression == property.Parameters.First() ||
92
                 (memberExpression.Expression == property.Parameters.First() ||
95
                  (memberExpression.Expression == null && memberExpression.Member.DeclaringType == property.Parameters.First().Type)))
93
                  (memberExpression.Expression == null && memberExpression.Member.DeclaringType == property.Parameters.First().Type)))
96
             {
94
             {
101
 
99
 
102
         public static MethodInfo GetSingleMethodFromExpression(LambdaExpression method)
100
         public static MethodInfo GetSingleMethodFromExpression(LambdaExpression method)
103
         {
101
         {
104
-            var methodCallExpression = GetFromConvert(method) as MethodCallExpression;
105
-
106
             // TODO check if something like methodCallExpression.Method.DeclaringType == method.Parameters.First().Type is usefull/required (static/extension methods)
102
             // TODO check if something like methodCallExpression.Method.DeclaringType == method.Parameters.First().Type is usefull/required (static/extension methods)
107
-            if (methodCallExpression != null &&
103
+            if (GetFromConvert(method) is MethodCallExpression methodCallExpression &&
108
                 (methodCallExpression.Object == method.Parameters.First() || methodCallExpression.Object == null))
104
                 (methodCallExpression.Object == method.Parameters.First() || methodCallExpression.Object == null))
109
             {
105
             {
110
                 return methodCallExpression.Method;
106
                 return methodCallExpression.Method;

Luticate2.Auth/Business/ObjectConverter/LuObjectConverterDescriptor.cs → Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptor.cs View File

3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
 using System.Reflection;
5
 using System.Reflection;
6
-using Luticate2.Auth.Interfaces;
6
+using Luticate2.Auth.Utils.Interfaces;
7
 
7
 
8
-namespace Luticate2.Auth.Business.ObjectConverter
8
+namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
9
 {
9
 {
10
     public class LuObjectConverterDescriptor : ILuObjectConverterDescriptor
10
     public class LuObjectConverterDescriptor : ILuObjectConverterDescriptor
11
     {
11
     {

Luticate2.Auth/Business/ObjectConverter/LuObjectConverterDescriptorDbSet.cs → Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptorDbSet.cs View File

3
 using System.Linq.Expressions;
3
 using System.Linq.Expressions;
4
 using Microsoft.EntityFrameworkCore;
4
 using Microsoft.EntityFrameworkCore;
5
 
5
 
6
-namespace Luticate2.Auth.Business.ObjectConverter
6
+namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
7
 {
7
 {
8
     public class LuObjectConverterDescriptorDbSet : LuObjectConverterDescriptor
8
     public class LuObjectConverterDescriptorDbSet : LuObjectConverterDescriptor
9
     {
9
     {

Luticate2.Auth/Business/ObjectConverter/LuObjectConverterDescriptorEnumerable.cs → Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptorEnumerable.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
-using System.Reflection;
6
-using Luticate2.Auth.Interfaces;
7
 
5
 
8
-namespace Luticate2.Auth.Business.ObjectConverter
6
+namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
9
 {
7
 {
10
     public class LuObjectConverterDescriptorEnumerable : LuObjectConverterDescriptor
8
     public class LuObjectConverterDescriptorEnumerable : LuObjectConverterDescriptor
11
     {
9
     {

Luticate2.Auth/Business/ObjectConverter/LuObjectConverterDescriptorIdentity.cs → Luticate2.Auth/Utils/Business/ObjectConverterDescriptor/LuObjectConverterDescriptorIdentity.cs View File

3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
 using System.Reflection;
5
 using System.Reflection;
6
-using Luticate2.Auth.Interfaces;
6
+using Luticate2.Auth.Utils.Interfaces;
7
 
7
 
8
-namespace Luticate2.Auth.Business.ObjectConverter
8
+namespace Luticate2.Auth.Utils.Business.ObjectConverterDescriptor
9
 {
9
 {
10
     public class LuObjectConverterDescriptorIdentity : ILuObjectConverterDescriptorIdentity
10
     public class LuObjectConverterDescriptorIdentity : ILuObjectConverterDescriptorIdentity
11
     {
11
     {

Luticate2.Auth/Business/Pagination/LuFilterParser.cs → Luticate2.Auth/Utils/Business/Pagination/LuFilterParser.cs View File

1
 using System;
1
 using System;
2
 using System.Linq.Expressions;
2
 using System.Linq.Expressions;
3
-using Luticate2.Auth.Dbo;
4
-using Luticate2.Auth.Dbo.Pagination;
5
-using Luticate2.Auth.Dbo.Result;
3
+using Luticate2.Auth.Utils.Dbo;
4
+using Luticate2.Auth.Utils.Dbo.Pagination;
5
+using Luticate2.Auth.Utils.Dbo.Result;
6
 using Microsoft.CodeAnalysis.CSharp.Scripting;
6
 using Microsoft.CodeAnalysis.CSharp.Scripting;
7
 using Microsoft.CodeAnalysis.Scripting;
7
 using Microsoft.CodeAnalysis.Scripting;
8
 
8
 
9
-namespace Luticate2.Auth.Business.Pagination
9
+namespace Luticate2.Auth.Utils.Business.Pagination
10
 {
10
 {
11
     public class LuFilterParser
11
     public class LuFilterParser
12
     {
12
     {

Luticate2.Auth/Business/Pagination/LuOrderByParser.cs → Luticate2.Auth/Utils/Business/Pagination/LuOrderByParser.cs View File

1
 using System.Collections.Generic;
1
 using System.Collections.Generic;
2
-using Luticate2.Auth.Dbo;
3
-using Luticate2.Auth.Dbo.Fields;
4
-using Luticate2.Auth.Dbo.Pagination;
5
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Utils.Dbo;
3
+using Luticate2.Auth.Utils.Dbo.Fields;
4
+using Luticate2.Auth.Utils.Dbo.Pagination;
5
+using Luticate2.Auth.Utils.Dbo.Result;
6
 
6
 
7
-namespace Luticate2.Auth.Business.Pagination
7
+namespace Luticate2.Auth.Utils.Business.Pagination
8
 {
8
 {
9
-    public class LuOrderByParser
9
+    public static class LuOrderByParser
10
     {
10
     {
11
         public static LuResult<LuOrderByDbo> Parse(string data)
11
         public static LuResult<LuOrderByDbo> Parse(string data)
12
         {
12
         {

Luticate2.Auth/Business/PartialObjectCopier/LuPartialObjectCopier.cs → Luticate2.Auth/Utils/Business/PartialObjectCopier/LuPartialObjectCopier.cs View File

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq.Expressions;
3
 using System.Linq.Expressions;
4
-using Luticate2.Auth.Business.Fields;
5
-using Luticate2.Auth.Dbo;
6
-using Luticate2.Auth.Dbo.Fields;
7
-using Luticate2.Auth.Dbo.PartialObjectCopier;
8
-using Luticate2.Auth.Dbo.Result;
9
-using Luticate2.Auth.Interfaces;
4
+using Luticate2.Auth.Utils.Business.Fields;
5
+using Luticate2.Auth.Utils.Dbo;
6
+using Luticate2.Auth.Utils.Dbo.Fields;
7
+using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
8
+using Luticate2.Auth.Utils.Dbo.Result;
9
+using Luticate2.Auth.Utils.Interfaces;
10
 using Microsoft.Extensions.DependencyInjection;
10
 using Microsoft.Extensions.DependencyInjection;
11
 
11
 
12
-namespace Luticate2.Auth.Business.PartialObjectCopier
12
+namespace Luticate2.Auth.Utils.Business.PartialObjectCopier
13
 {
13
 {
14
     public abstract class LuPartialObjectCopier<TTypeFrom, TTypeTo> : ILuPartialObjectCopier<TTypeFrom, TTypeTo>
14
     public abstract class LuPartialObjectCopier<TTypeFrom, TTypeTo> : ILuPartialObjectCopier<TTypeFrom, TTypeTo>
15
     {
15
     {

Luticate2.Auth/Business/PartialObjectCopier/LuPartialObjectCopierExtensions.cs → Luticate2.Auth/Utils/Business/PartialObjectCopier/LuPartialObjectCopierExtensions.cs View File

1
-namespace Luticate2.Auth.Business.PartialObjectCopier
1
+namespace Luticate2.Auth.Utils.Business.PartialObjectCopier
2
 {
2
 {
3
     public static class LuPartialObjectCopierExtensions
3
     public static class LuPartialObjectCopierExtensions
4
     {
4
     {

Luticate2.Auth/Business/Serializers/PartialJson/LuJsonSerializerExtensions.cs → Luticate2.Auth/Utils/Business/Serializers/PartialJson/LuJsonSerializerExtensions.cs View File

3
 using Newtonsoft.Json;
3
 using Newtonsoft.Json;
4
 using Newtonsoft.Json.Linq;
4
 using Newtonsoft.Json.Linq;
5
 
5
 
6
-namespace Luticate2.Auth.Business.Serializers.PartialJson
6
+namespace Luticate2.Auth.Utils.Business.Serializers.PartialJson
7
 {
7
 {
8
     /// <summary>
8
     /// <summary>
9
     /// Provides a method for serializing objects to JSON.
9
     /// Provides a method for serializing objects to JSON.

Luticate2.Auth/Business/Serializers/PartialJson/LuPartialJsonWriter.cs → Luticate2.Auth/Utils/Business/Serializers/PartialJson/LuPartialJsonWriter.cs View File

1
 using System.IO;
1
 using System.IO;
2
-using Luticate2.Auth.Business.Fields;
3
-using Luticate2.Auth.Dbo.Fields;
2
+using Luticate2.Auth.Utils.Business.Fields;
3
+using Luticate2.Auth.Utils.Dbo.Fields;
4
 using Newtonsoft.Json;
4
 using Newtonsoft.Json;
5
 
5
 
6
-namespace Luticate2.Auth.Business.Serializers.PartialJson
6
+namespace Luticate2.Auth.Utils.Business.Serializers.PartialJson
7
 {
7
 {
8
-    public class LuPartialJsonWriter
8
+    public static class LuPartialJsonWriter
9
     {
9
     {
10
         public static string SerializeObject(object data, LuPartialFieldsDbo partialResponseDbo, JsonSerializerSettings settings)
10
         public static string SerializeObject(object data, LuPartialFieldsDbo partialResponseDbo, JsonSerializerSettings settings)
11
         {
11
         {

Luticate2.Auth/Business/Serializers/PartialJson/LuSerializerContext.cs → Luticate2.Auth/Utils/Business/Serializers/PartialJson/LuSerializerContext.cs View File

1
 using System;
1
 using System;
2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 
3
 
4
-namespace Luticate2.Auth.Business.Serializers.PartialJson
4
+namespace Luticate2.Auth.Utils.Business.Serializers.PartialJson
5
 {
5
 {
6
     internal class LuSerializerContext
6
     internal class LuSerializerContext
7
     {
7
     {

Luticate2.Auth/Dbo/Fields/LuFieldDbo.cs → Luticate2.Auth/Utils/Dbo/Fields/LuFieldDbo.cs View File

2
 using System.Collections.Generic;
2
 using System.Collections.Generic;
3
 using System.Linq;
3
 using System.Linq;
4
 using System.Linq.Expressions;
4
 using System.Linq.Expressions;
5
-using Luticate2.Auth.Business.Fields;
5
+using Luticate2.Auth.Utils.Business.Fields;
6
 
6
 
7
-namespace Luticate2.Auth.Dbo.Fields
7
+namespace Luticate2.Auth.Utils.Dbo.Fields
8
 {
8
 {
9
     public class LuFieldDbo
9
     public class LuFieldDbo
10
     {
10
     {

Luticate2.Auth/Dbo/Fields/LuPartialFieldsDbo.cs → Luticate2.Auth/Utils/Dbo/Fields/LuPartialFieldsDbo.cs View File

1
 using System.Collections.Generic;
1
 using System.Collections.Generic;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Fields
3
+namespace Luticate2.Auth.Utils.Dbo.Fields
4
 {
4
 {
5
     public class LuPartialFieldsDbo
5
     public class LuPartialFieldsDbo
6
     {
6
     {

Luticate2.Auth/Dbo/LuDboExtensions.cs → Luticate2.Auth/Utils/Dbo/LuDboExtensions.cs View File

1
-using Luticate2.Auth.Dbo.Result;
1
+using Luticate2.Auth.Utils.Dbo.Result;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo
3
+namespace Luticate2.Auth.Utils.Dbo
4
 {
4
 {
5
     public static class LuDboExtensions
5
     public static class LuDboExtensions
6
     {
6
     {

Luticate2.Auth/Dbo/Pagination/LuFilterDbo.cs → Luticate2.Auth/Utils/Dbo/Pagination/LuFilterDbo.cs View File

1
 using System.Linq.Expressions;
1
 using System.Linq.Expressions;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Pagination
3
+namespace Luticate2.Auth.Utils.Dbo.Pagination
4
 {
4
 {
5
     public class LuFilterDbo
5
     public class LuFilterDbo
6
     {
6
     {

Luticate2.Auth/Dbo/Pagination/LuOrderByDbo.cs → Luticate2.Auth/Utils/Dbo/Pagination/LuOrderByDbo.cs View File

1
 using System.Collections.Generic;
1
 using System.Collections.Generic;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Pagination
3
+namespace Luticate2.Auth.Utils.Dbo.Pagination
4
 {
4
 {
5
     public class LuOrderByDbo
5
     public class LuOrderByDbo
6
     {
6
     {

Luticate2.Auth/Dbo/Pagination/LuOrderByFieldDbo.cs → Luticate2.Auth/Utils/Dbo/Pagination/LuOrderByFieldDbo.cs View File

1
-using Luticate2.Auth.Dbo.Fields;
1
+using Luticate2.Auth.Utils.Dbo.Fields;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Pagination
3
+namespace Luticate2.Auth.Utils.Dbo.Pagination
4
 {
4
 {
5
     public class LuOrderByFieldDbo
5
     public class LuOrderByFieldDbo
6
     {
6
     {

Luticate2.Auth/Dbo/Pagination/LuPaginatedDbo.cs → Luticate2.Auth/Utils/Dbo/Pagination/LuPaginatedDbo.cs View File

1
 using System.Collections.Generic;
1
 using System.Collections.Generic;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Pagination
3
+namespace Luticate2.Auth.Utils.Dbo.Pagination
4
 {
4
 {
5
     public class LuPaginatedDbo<TDbo>
5
     public class LuPaginatedDbo<TDbo>
6
     {
6
     {

Luticate2.Auth/Dbo/Pagination/LuPaginatedParamsDbo.cs → Luticate2.Auth/Utils/Dbo/Pagination/LuPaginatedParamsDbo.cs View File

1
-namespace Luticate2.Auth.Dbo.Pagination
1
+namespace Luticate2.Auth.Utils.Dbo.Pagination
2
 {
2
 {
3
     public class LuPaginatedParamsDbo
3
     public class LuPaginatedParamsDbo
4
     {
4
     {

Luticate2.Auth/Dbo/PartialObjectCopier/LuPartialObjectCopierOptions.cs → Luticate2.Auth/Utils/Dbo/PartialObjectCopier/LuPartialObjectCopierOptions.cs View File

1
-namespace Luticate2.Auth.Dbo.PartialObjectCopier
1
+namespace Luticate2.Auth.Utils.Dbo.PartialObjectCopier
2
 {
2
 {
3
     public class LuPartialObjectCopierOptions
3
     public class LuPartialObjectCopierOptions
4
     {
4
     {

Luticate2.Auth/Dbo/Result/LuResult.cs → Luticate2.Auth/Utils/Dbo/Result/LuResult.cs View File

1
 using System;
1
 using System;
2
 
2
 
3
-namespace Luticate2.Auth.Dbo.Result
3
+namespace Luticate2.Auth.Utils.Dbo.Result
4
 {
4
 {
5
     public class LuResult<T>
5
     public class LuResult<T>
6
     {
6
     {

Luticate2.Auth/Dbo/Result/LuStatus.cs → Luticate2.Auth/Utils/Dbo/Result/LuStatus.cs View File

1
-namespace Luticate2.Auth.Dbo.Result
1
+namespace Luticate2.Auth.Utils.Dbo.Result
2
 {
2
 {
3
     /// <summary>
3
     /// <summary>
4
     /// Represents a success or error code used for <see cref="LuResult{T}"/>.
4
     /// Represents a success or error code used for <see cref="LuResult{T}"/>.

Luticate2.Auth/Exceptions/LuExceptionsExtensions.cs → Luticate2.Auth/Utils/Exceptions/LuExceptionsExtensions.cs View File

1
-using Luticate2.Auth.Dbo.Result;
1
+using Luticate2.Auth.Utils.Dbo.Result;
2
 
2
 
3
-namespace Luticate2.Auth.Exceptions
3
+namespace Luticate2.Auth.Utils.Exceptions
4
 {
4
 {
5
     public static class LuExceptionsExtensions
5
     public static class LuExceptionsExtensions
6
     {
6
     {

Luticate2.Auth/Exceptions/LuResultException.cs → Luticate2.Auth/Utils/Exceptions/LuResultException.cs View File

1
 using System;
1
 using System;
2
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Utils.Dbo.Result;
3
 
3
 
4
-namespace Luticate2.Auth.Exceptions
4
+namespace Luticate2.Auth.Utils.Exceptions
5
 {
5
 {
6
     public class LuResultException : Exception
6
     public class LuResultException : Exception
7
     {
7
     {

Luticate2.Auth/Interfaces/ILuCrud.cs → Luticate2.Auth/Utils/Interfaces/ILuCrud.cs View File

1
 using System.Collections.Generic;
1
 using System.Collections.Generic;
2
-using Luticate2.Auth.Dbo.Fields;
3
-using Luticate2.Auth.Dbo.Pagination;
4
-using Luticate2.Auth.Dbo.Result;
2
+using Luticate2.Auth.Utils.Dbo.Fields;
3
+using Luticate2.Auth.Utils.Dbo.Pagination;
4
+using Luticate2.Auth.Utils.Dbo.Result;
5
 
5
 
6
-namespace Luticate2.Auth.Interfaces
6
+namespace Luticate2.Auth.Utils.Interfaces
7
 {
7
 {
8
     public interface ILuCrud<TDbo>
8
     public interface ILuCrud<TDbo>
9
     {
9
     {

Luticate2.Auth/Interfaces/ILuObjectConverterDescriptor.cs → Luticate2.Auth/Utils/Interfaces/ILuObjectConverterDescriptor.cs View File

3
 using System.Linq.Expressions;
3
 using System.Linq.Expressions;
4
 using System.Reflection;
4
 using System.Reflection;
5
 
5
 
6
-namespace Luticate2.Auth.Interfaces
6
+namespace Luticate2.Auth.Utils.Interfaces
7
 {
7
 {
8
     public interface ILuObjectConverterDescriptor
8
     public interface ILuObjectConverterDescriptor
9
     {
9
     {

Luticate2.Auth/Interfaces/ILuPartialObjectCopier.cs → Luticate2.Auth/Utils/Interfaces/ILuPartialObjectCopier.cs View File

1
-using Luticate2.Auth.Dbo.Fields;
2
-using Luticate2.Auth.Dbo.PartialObjectCopier;
3
-using Luticate2.Auth.Dbo.Result;
1
+using Luticate2.Auth.Utils.Dbo.Fields;
2
+using Luticate2.Auth.Utils.Dbo.PartialObjectCopier;
3
+using Luticate2.Auth.Utils.Dbo.Result;
4
 
4
 
5
-namespace Luticate2.Auth.Interfaces
5
+namespace Luticate2.Auth.Utils.Interfaces
6
 {
6
 {
7
     public interface ILuPartialObjectCopier<TTypeFrom, TTypeTo>
7
     public interface ILuPartialObjectCopier<TTypeFrom, TTypeTo>
8
     {
8
     {

+ 0
- 1
Luticate2.Mvc.Auth.Tests/UnitTest1.cs View File

1
-using System;
2
 using Xunit;
1
 using Xunit;
3
 
2
 
4
 namespace Luticate2.Mvc.Auth.Tests
3
 namespace Luticate2.Mvc.Auth.Tests

+ 1
- 4
Luticate2.Mvc.Auth.WebApiSample/Controllers/ValuesController.cs View File

1
-using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Threading.Tasks;
1
+using System.Collections.Generic;
5
 using Microsoft.AspNetCore.Mvc;
2
 using Microsoft.AspNetCore.Mvc;
6
 
3
 
7
 namespace Luticate2.Mvc.Auth.WebApiSample.Controllers
4
 namespace Luticate2.Mvc.Auth.WebApiSample.Controllers

+ 1
- 8
Luticate2.Mvc.Auth.WebApiSample/Program.cs View File

1
-using System;
2
-using System.Collections.Generic;
3
-using System.IO;
4
-using System.Linq;
5
-using System.Threading.Tasks;
6
-using Microsoft.AspNetCore;
1
+using Microsoft.AspNetCore;
7
 using Microsoft.AspNetCore.Hosting;
2
 using Microsoft.AspNetCore.Hosting;
8
-using Microsoft.Extensions.Configuration;
9
-using Microsoft.Extensions.Logging;
10
 
3
 
11
 namespace Luticate2.Mvc.Auth.WebApiSample
4
 namespace Luticate2.Mvc.Auth.WebApiSample
12
 {
5
 {

+ 1
- 7
Luticate2.Mvc.Auth.WebApiSample/Startup.cs View File

1
-using System;
2
-using System.Collections.Generic;
3
-using System.Linq;
4
-using System.Threading.Tasks;
5
-using Microsoft.AspNetCore.Builder;
1
+using Microsoft.AspNetCore.Builder;
6
 using Microsoft.AspNetCore.Hosting;
2
 using Microsoft.AspNetCore.Hosting;
7
 using Microsoft.Extensions.Configuration;
3
 using Microsoft.Extensions.Configuration;
8
 using Microsoft.Extensions.DependencyInjection;
4
 using Microsoft.Extensions.DependencyInjection;
9
-using Microsoft.Extensions.Logging;
10
-using Microsoft.Extensions.Options;
11
 
5
 
12
 namespace Luticate2.Mvc.Auth.WebApiSample
6
 namespace Luticate2.Mvc.Auth.WebApiSample
13
 {
7
 {

+ 1
- 3
Luticate2.Mvc.Auth/Class1.cs View File

1
-using System;
2
-
3
-namespace Luticate2.Mvc.Auth
1
+namespace Luticate2.Mvc.Auth
4
 {
2
 {
5
     public class Class1
3
     public class Class1
6
     {
4
     {

+ 2
- 1
luticate2.sln.DotSettings.user View File

32
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ANamedArgumentAttribute_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003FBA7C3D01_002D2007_002D4710_002D95AB_002D341647F324E9_003Fde_003F366d7bbe_003FNamedArgumentAttribute_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
32
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003ANamedArgumentAttribute_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003FBA7C3D01_002D2007_002D4710_002D95AB_002D341647F324E9_003Fde_003F366d7bbe_003FNamedArgumentAttribute_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
33
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AQueryable_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F711AF2B2_002DC9DB_002D4B65_002DB7EA_002DB21A353C3B37_003F39_003F53296e13_003FQueryable_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
33
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AQueryable_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F711AF2B2_002DC9DB_002D4B65_002DB7EA_002DB21A353C3B37_003F39_003F53296e13_003FQueryable_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
34
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AQueryCompiler_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F406635BB_002DC0DC_002D4AE8_002D9B6C_002D783FB3A661DB_003F8f_003Fc4fa4ffe_003FQueryCompiler_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
34
 	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AQueryCompiler_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F406635BB_002DC0DC_002D4AE8_002D9B6C_002D783FB3A661DB_003F8f_003Fc4fa4ffe_003FQueryCompiler_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
35
-	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AString_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F0E1B27A4_002D6035_002D47D9_002DA041_002DCEF439F84C41_003Fd0_003Fedac82f9_003FString_002Ecs/@EntryIndexedValue">ForceIncluded</s:String></wpf:ResourceDictionary>
35
+	<s:String x:Key="/Default/CodeInspection/ExcludedFiles/FilesAndFoldersToSkip2/=7020124F_002D9FFC_002D4AC3_002D8F3D_002DAAB8E0240759_002Ff_003AString_002Ecs_002Fl_003A_002E_002E_003F_002E_002E_003F_002E_002E_003F_002ERider2018_002E1_003Fconfig_003Fresharper_002Dhost_003FDecompilerCache_003Fdecompiler_003F0E1B27A4_002D6035_002D47D9_002DA041_002DCEF439F84C41_003Fd0_003Fedac82f9_003FString_002Ecs/@EntryIndexedValue">ForceIncluded</s:String>
36
+	<s:Boolean x:Key="/Default/UserDictionary/Words/=Luticate/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>

Loading…
Cancel
Save