diff options
Diffstat (limited to 'dropped/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/IClause.cs')
-rw-r--r-- | dropped/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/IClause.cs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/dropped/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/IClause.cs b/dropped/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/IClause.cs deleted file mode 100644 index 964a669..0000000 --- a/dropped/docker/crupest-api/CrupestApi/CrupestApi.Commons/Crud/IClause.cs +++ /dev/null @@ -1,24 +0,0 @@ -using Dapper; - -namespace CrupestApi.Commons.Crud; - -public interface IClause -{ - IEnumerable<IClause> GetSubclauses() - { - return Enumerable.Empty<IClause>(); - } - - IEnumerable<string> GetRelatedColumns() - { - var subclauses = GetSubclauses(); - var result = new List<string>(); - foreach (var subclause in subclauses) - { - var columns = subclause.GetRelatedColumns(); - if (columns is not null) - result.AddRange(columns); - } - return result; - } -} |