diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f17d2f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +*/bin/ +*/obj/ +*.log +*.TMP +.vs/ \ No newline at end of file diff --git a/.vs/ProjectEvaluation/uwine.metadata.v9.bin b/.vs/ProjectEvaluation/uwine.metadata.v9.bin index a37940e..3e753a6 100644 Binary files a/.vs/ProjectEvaluation/uwine.metadata.v9.bin and b/.vs/ProjectEvaluation/uwine.metadata.v9.bin differ diff --git a/.vs/ProjectEvaluation/uwine.projects.v9.bin b/.vs/ProjectEvaluation/uwine.projects.v9.bin index ee79855..4c1551d 100644 Binary files a/.vs/ProjectEvaluation/uwine.projects.v9.bin and b/.vs/ProjectEvaluation/uwine.projects.v9.bin differ diff --git a/.vs/ProjectEvaluation/uwine.strings.v9.bin b/.vs/ProjectEvaluation/uwine.strings.v9.bin index 9583900..13b92b9 100644 Binary files a/.vs/ProjectEvaluation/uwine.strings.v9.bin and b/.vs/ProjectEvaluation/uwine.strings.v9.bin differ diff --git a/.vs/uWine/CopilotIndices/0.2.1634.3922/CodeChunks.db b/.vs/uWine/CopilotIndices/0.2.1634.3922/CodeChunks.db index a952789..69b7466 100644 Binary files a/.vs/uWine/CopilotIndices/0.2.1634.3922/CodeChunks.db and b/.vs/uWine/CopilotIndices/0.2.1634.3922/CodeChunks.db differ diff --git a/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-shm b/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-shm index c4f0cc1..da146ca 100644 Binary files a/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-shm and b/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-shm differ diff --git a/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-wal b/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-wal index 98c5d50..87e0199 100644 Binary files a/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-wal and b/.vs/uWine/CopilotIndices/0.2.1634.3922/SemanticSymbols.db-wal differ diff --git a/.vs/uWine/DesignTimeBuild/.dtbcache.v2 b/.vs/uWine/DesignTimeBuild/.dtbcache.v2 index 61da454..67256fe 100644 Binary files a/.vs/uWine/DesignTimeBuild/.dtbcache.v2 and b/.vs/uWine/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/uWine/FileContentIndex/17afd25d-c3ee-4f7c-b8fa-d4f0adbf0385.vsidx b/.vs/uWine/FileContentIndex/17afd25d-c3ee-4f7c-b8fa-d4f0adbf0385.vsidx deleted file mode 100644 index 29d5be9..0000000 Binary files a/.vs/uWine/FileContentIndex/17afd25d-c3ee-4f7c-b8fa-d4f0adbf0385.vsidx and /dev/null differ diff --git a/.vs/uWine/FileContentIndex/8d74a642-c150-4905-80c9-72ca1f03e67e.vsidx b/.vs/uWine/FileContentIndex/8d74a642-c150-4905-80c9-72ca1f03e67e.vsidx deleted file mode 100644 index 3ae4cc7..0000000 Binary files a/.vs/uWine/FileContentIndex/8d74a642-c150-4905-80c9-72ca1f03e67e.vsidx and /dev/null differ diff --git a/.vs/uWine/FileContentIndex/9c5603cb-a7cd-49c5-a448-603653482715.vsidx b/.vs/uWine/FileContentIndex/9c5603cb-a7cd-49c5-a448-603653482715.vsidx deleted file mode 100644 index 3c6fdb0..0000000 Binary files a/.vs/uWine/FileContentIndex/9c5603cb-a7cd-49c5-a448-603653482715.vsidx and /dev/null differ diff --git a/.vs/uWine/FileContentIndex/ab7baa09-8496-4c1b-8bfa-e7522743fb45.vsidx b/.vs/uWine/FileContentIndex/ab7baa09-8496-4c1b-8bfa-e7522743fb45.vsidx deleted file mode 100644 index 8df71d5..0000000 Binary files a/.vs/uWine/FileContentIndex/ab7baa09-8496-4c1b-8bfa-e7522743fb45.vsidx and /dev/null differ diff --git a/.vs/uWine/FileContentIndex/e07b88f8-9085-47fe-a8f9-70dfab6be463.vsidx b/.vs/uWine/FileContentIndex/e07b88f8-9085-47fe-a8f9-70dfab6be463.vsidx deleted file mode 100644 index 5245229..0000000 Binary files a/.vs/uWine/FileContentIndex/e07b88f8-9085-47fe-a8f9-70dfab6be463.vsidx and /dev/null differ diff --git a/.vs/uWine/v17/.futdcache.v2 b/.vs/uWine/v17/.futdcache.v2 index 913c679..b1efbb9 100644 Binary files a/.vs/uWine/v17/.futdcache.v2 and b/.vs/uWine/v17/.futdcache.v2 differ diff --git a/.vs/uWine/v17/.suo b/.vs/uWine/v17/.suo index b256d9c..3159887 100644 Binary files a/.vs/uWine/v17/.suo and b/.vs/uWine/v17/.suo differ diff --git a/.vs/uWine/v17/DocumentLayout.backup.json b/.vs/uWine/v17/DocumentLayout.backup.json index fd51c9e..d26bad4 100644 --- a/.vs/uWine/v17/DocumentLayout.backup.json +++ b/.vs/uWine/v17/DocumentLayout.backup.json @@ -2,6 +2,10 @@ "Version": 1, "WorkspaceRootPath": "M:\\uv\\uWine\\", "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, { "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\row.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\row.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" @@ -17,10 +21,6 @@ { "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\plantvariety.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\plantvariety.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], "DocumentGroupContainers": [ @@ -30,47 +30,8 @@ "DocumentGroups": [ { "DockedWidth": 200, - "SelectedChildIndex": 10, + "SelectedChildIndex": 7, "Children": [ - { - "$type": "Document", - "DocumentIndex": 3, - "Title": "PlantVariety.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\PlantVariety.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\PlantVariety.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:07:24.849Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 2, - "Title": "VinePlant.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\VinePlant.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\VinePlant.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAbAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:05:44.035Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 1, - "Title": "Vineyard.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Vineyard.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\Vineyard.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAZAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:04:51.461Z", - "EditorCaption": "" - }, { "$type": "Bookmark", "Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}" @@ -102,28 +63,64 @@ { "$type": "Document", "DocumentIndex": 0, - "Title": "Row.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Row.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Row.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Row.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\Row.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAA4AAAAAAAAAA==", + "Title": "Worker.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Worker.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Worker.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Worker.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\Worker.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:04:07.145Z", + "WhenOpened": "2025-07-03T10:06:12.415Z", "EditorCaption": "" }, { "$type": "Document", "DocumentIndex": 4, - "Title": "Class1.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Class1.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Class1.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Class1.cs", - "RelativeToolTip": "uWine.Core.Domain\\Class1.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", + "Title": "PlantVariety.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\PlantVariety.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\PlantVariety.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:01:38.395Z", + "WhenOpened": "2025-07-02T17:07:24.849Z", "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 3, + "Title": "VinePlant.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\VinePlant.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\VinePlant.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAbAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-02T17:05:44.035Z" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "Vineyard.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Vineyard.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\Vineyard.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAZAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-02T17:04:51.461Z" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "Row.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Row.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Row.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Row.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\Row.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-02T17:04:07.145Z" } ] } diff --git a/.vs/uWine/v17/DocumentLayout.json b/.vs/uWine/v17/DocumentLayout.json index 203d544..6dbc673 100644 --- a/.vs/uWine/v17/DocumentLayout.json +++ b/.vs/uWine/v17/DocumentLayout.json @@ -2,6 +2,18 @@ "Version": 1, "WorkspaceRootPath": "M:\\uv\\uWine\\", "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\warehouseproduct.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\warehouseproduct.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\productusage.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\productusage.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\worker.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, { "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\row.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\row.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" @@ -17,10 +29,6 @@ { "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\entities\\plantvariety.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\entities\\plantvariety.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" - }, - { - "AbsoluteMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|m:\\uv\\uwine\\uwine.core.domain\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}|uWine.Core.Domain\\uWine.Core.Domain.csproj|solutionrelative:uwine.core.domain\\class1.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" } ], "DocumentGroupContainers": [ @@ -30,47 +38,8 @@ "DocumentGroups": [ { "DockedWidth": 200, - "SelectedChildIndex": 10, + "SelectedChildIndex": 7, "Children": [ - { - "$type": "Document", - "DocumentIndex": 3, - "Title": "PlantVariety.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\PlantVariety.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\PlantVariety.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:07:24.849Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 2, - "Title": "VinePlant.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\VinePlant.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\VinePlant.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAbAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:05:44.035Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 1, - "Title": "Vineyard.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Vineyard.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", - "RelativeToolTip": "uWine.Core.Domain\\Entities\\Vineyard.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAZAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:04:51.461Z", - "EditorCaption": "" - }, { "$type": "Bookmark", "Name": "ST:0:0:{d78612c7-9962-4b83-95d9-268046dad23a}" @@ -102,6 +71,82 @@ { "$type": "Document", "DocumentIndex": 0, + "Title": "WarehouseProduct.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\WarehouseProduct.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\WarehouseProduct.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\WarehouseProduct.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\WarehouseProduct.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAA0AAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-03T10:07:37.406Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 1, + "Title": "ProductUsage.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\ProductUsage.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\ProductUsage.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\ProductUsage.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\ProductUsage.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABIAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-03T10:07:00.42Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 2, + "Title": "Worker.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Worker.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Worker.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Worker.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\Worker.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-03T10:06:12.415Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "PlantVariety.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\PlantVariety.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\PlantVariety.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\PlantVariety.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-02T17:07:24.849Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "VinePlant.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\VinePlant.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\VinePlant.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\VinePlant.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAbAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-02T17:05:44.035Z" + }, + { + "$type": "Document", + "DocumentIndex": 4, + "Title": "Vineyard.cs", + "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", + "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Vineyard.cs", + "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Vineyard.cs", + "RelativeToolTip": "uWine.Core.Domain\\Entities\\Vineyard.cs", + "ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAZAAAAAAAAAA==", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2025-07-02T17:04:51.461Z" + }, + { + "$type": "Document", + "DocumentIndex": 3, "Title": "Row.cs", "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Entities\\Row.cs", "RelativeDocumentMoniker": "uWine.Core.Domain\\Entities\\Row.cs", @@ -109,21 +154,7 @@ "RelativeToolTip": "uWine.Core.Domain\\Entities\\Row.cs", "ViewState": "AgIAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAA==", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:04:07.145Z", - "EditorCaption": "" - }, - { - "$type": "Document", - "DocumentIndex": 4, - "Title": "Class1.cs", - "DocumentMoniker": "M:\\uv\\uWine\\uWine.Core.Domain\\Class1.cs", - "RelativeDocumentMoniker": "uWine.Core.Domain\\Class1.cs", - "ToolTip": "M:\\uv\\uWine\\uWine.Core.Domain\\Class1.cs", - "RelativeToolTip": "uWine.Core.Domain\\Class1.cs", - "ViewState": "AgIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2025-07-02T17:01:38.395Z", - "EditorCaption": "" + "WhenOpened": "2025-07-02T17:04:07.145Z" } ] } diff --git a/uWine.Core.Domain/Class1.cs b/uWine.Core.Domain/Class1.cs deleted file mode 100644 index 1ffd62e..0000000 --- a/uWine.Core.Domain/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace uWine.Core.Domain -{ - public class Class1 - { - - } -} diff --git a/uWine.Core.Domain/Entities/PlantWork.cs b/uWine.Core.Domain/Entities/PlantWork.cs new file mode 100644 index 0000000..c738a51 --- /dev/null +++ b/uWine.Core.Domain/Entities/PlantWork.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Domain.Entities +{ + public class PlantWork + { + public int Id { get; set; } + public int PlantId { get; set; } + public int WorkerId { get; set; } + public DateTime WorkDate { get; set; } + public string Description { get; set; } + + } +} diff --git a/uWine.Core.Domain/Entities/ProductUsage.cs b/uWine.Core.Domain/Entities/ProductUsage.cs new file mode 100644 index 0000000..d6c7b05 --- /dev/null +++ b/uWine.Core.Domain/Entities/ProductUsage.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Domain.Entities +{ + public class ProductUsage + { + public int Id { get; set; } + public int ProductId { get; set; } + public int WorkerId { get; set; } + public DateTime UsageDate { get; set; } + public decimal QuantityUsed { get; set; } + public string Unit { get; set; } + public string WorkType { get; set; } + public int WorkId { get; set; } + + } +} diff --git a/uWine.Core.Domain/Entities/RowWork.cs b/uWine.Core.Domain/Entities/RowWork.cs new file mode 100644 index 0000000..4f5fcd1 --- /dev/null +++ b/uWine.Core.Domain/Entities/RowWork.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Domain.Entities +{ + public class RowWork + { + public int Id { get; set; } + public int RowId { get; set; } + public int WorkerId { get; set; } + public DateTime WorkDate { get; set; } + public string Description { get; set; } + } +} diff --git a/uWine.Core.Domain/Entities/VineyardWork.cs b/uWine.Core.Domain/Entities/VineyardWork.cs new file mode 100644 index 0000000..c152eb0 --- /dev/null +++ b/uWine.Core.Domain/Entities/VineyardWork.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Domain.Entities +{ + public class VineyardWork + { + public int Id { get; set; } + public int VineyardId { get; set; } + public int WorkerId { get; set; } + public DateTime WorkDate { get; set; } + public string Description { get; set; } + } +} diff --git a/uWine.Core.Domain/Entities/WarehouseProduct.cs b/uWine.Core.Domain/Entities/WarehouseProduct.cs new file mode 100644 index 0000000..83052a8 --- /dev/null +++ b/uWine.Core.Domain/Entities/WarehouseProduct.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Domain.Entities +{ + public class WarehouseProduct + { + public int Id { get; set; } + public string Name { get; set; } + public string Type { get; set; } + public decimal Quantity { get; set; } + public DateTime ExpirationDate { get; set; } + } +} diff --git a/uWine.Core.Domain/Entities/Worker.cs b/uWine.Core.Domain/Entities/Worker.cs new file mode 100644 index 0000000..0515411 --- /dev/null +++ b/uWine.Core.Domain/Entities/Worker.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Domain.Entities +{ + public class Worker + { + public int Id { get; set; } + public string Name { get; set; } + public string Surname { get; set; } + public DateTime BirthDate { get; set; } + public DateTime HireDate { get; set; } + public string Role { get; set; } + + } +} diff --git a/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfo.cs b/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfo.cs index 8fbddcb..6bc204c 100644 --- a/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfo.cs +++ b/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfo.cs @@ -14,7 +14,7 @@ using System.Reflection; [assembly: System.Reflection.AssemblyCompanyAttribute("uWine.Core.Domain")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+79646e5e137e00100dd30558106b5f9ee3a1f5e8")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c1cce144adfdc03c9b6cea5b0475d00d396c5979")] [assembly: System.Reflection.AssemblyProductAttribute("uWine.Core.Domain")] [assembly: System.Reflection.AssemblyTitleAttribute("uWine.Core.Domain")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfoInputs.cache b/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfoInputs.cache index 1e9f33a..afcfeec 100644 --- a/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfoInputs.cache +++ b/uWine.Core.Domain/obj/Debug/net8.0/uWine.Core.Domain.AssemblyInfoInputs.cache @@ -1 +1 @@ -d0f6c0e5dc09e2f2b1c943f0e76870ffd1efc4d8e35b8734c41cc2b1564d661e +b4f9cdf42bbc6275dce25589f1009521fd28adc8121c348ed306aded774240ff diff --git a/uWine.Core.Infrastructure/Repository/MariaDbServerRepository.cs b/uWine.Core.Infrastructure/Repository/MariaDbServerRepository.cs new file mode 100644 index 0000000..1050c85 --- /dev/null +++ b/uWine.Core.Infrastructure/Repository/MariaDbServerRepository.cs @@ -0,0 +1,40 @@ +using Microsoft.Extensions.Configuration; +using MySqlConnector; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace uWine.Core.Infrastructure.Repository +{ + public abstract class MariaDbServerRepository + { + readonly protected IConfiguration Configuration; + + public MariaDbServerRepository(IConfiguration configuration) + { + Configuration = configuration; + } + + protected MySqlConnection Connection() + { + return new MySqlConnection(ConnectionString()); + } + + string ConnectionString() + { + var builder = new MySqlConnectionStringBuilder(); + builder.Server = Configuration.GetValue($"db:mariaDbServer"); + builder.Database = Configuration.GetValue($"db:mariaDbSchema"); + builder.UserID = Configuration.GetValue($"db:mariaDbUser"); + builder.Password = Configuration.GetValue($"db:mariaDbPassword"); + builder.SslMode = MySqlSslMode.None; + builder.MinimumPoolSize = 10; + builder.MaximumPoolSize = uint.Parse(Configuration.GetValue($"db:mariaDbPoolSize")); + builder.Pooling = true; + + return builder.ConnectionString; + } + } +} diff --git a/uWine.Core.Infrastructure/uWine.Core.Infrastructure.csproj b/uWine.Core.Infrastructure/uWine.Core.Infrastructure.csproj new file mode 100644 index 0000000..a6c3d6f --- /dev/null +++ b/uWine.Core.Infrastructure/uWine.Core.Infrastructure.csproj @@ -0,0 +1,15 @@ + + + + net8.0 + enable + enable + + + + + + + + + diff --git a/uWine.sln b/uWine.sln index 18a43e3..b540519 100644 --- a/uWine.sln +++ b/uWine.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.11.35222.181 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uWine.Core.Domain", "uWine.Core.Domain\uWine.Core.Domain.csproj", "{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "uWine.Core.Domain", "uWine.Core.Domain\uWine.Core.Domain.csproj", "{1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "uWine.Core.Infrastructure", "uWine.Core.Infrastructure\uWine.Core.Infrastructure.csproj", "{50360CEE-B38B-4729-ACA3-ABC3ED3538E9}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}.Debug|Any CPU.Build.0 = Debug|Any CPU {1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}.Release|Any CPU.ActiveCfg = Release|Any CPU {1DCFCDC3-C4A6-4864-8868-94AAB81C3DBA}.Release|Any CPU.Build.0 = Release|Any CPU + {50360CEE-B38B-4729-ACA3-ABC3ED3538E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {50360CEE-B38B-4729-ACA3-ABC3ED3538E9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {50360CEE-B38B-4729-ACA3-ABC3ED3538E9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {50360CEE-B38B-4729-ACA3-ABC3ED3538E9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE