From 03cd8b276aea77f6732dc3134871a8751428210d Mon Sep 17 00:00:00 2001
From: "jozsef.b@aycode.com" <9Rj@D}fVwBaN>
Date: Sat, 27 Apr 2024 19:04:27 +0200
Subject: [PATCH] Initialize AyCode.Core v0.0.1...
---
Mango.Core.Server/Mango.Core.Server.csproj | 22 +++++
Mango.Core/Mango.Core.csproj | 15 ++++
Mango.Database.Test/DatabaseTestBase.cs | 21 +++++
.../Mango.Database.Test.csproj | 85 +++++++++++++++++++
Mango.Database.Test/UserDalTests.cs | 10 +++
Mango.Database/DbContexts/DbContextBase.cs | 32 +++++++
Mango.Database/Mango.Database.csproj | 59 +++++++++++++
.../Mango.Entities.Server.csproj | 9 ++
Mango.Entities/Mango.Entities.csproj | 9 ++
.../Mango.Interfaces.Server.csproj | 9 ++
Mango.Interfaces/Mango.Interfaces.csproj | 9 ++
Mango.Models/Mango.Models.csproj | 9 ++
MissNationBlazor.sln | 54 ++++++++++++
.../MissNationBlazorHybrid.csproj | 6 +-
.../Client/MissNationBlazorWASM.Client.csproj | 4 +-
.../Server/MissNationBlazorWASM.Server.csproj | 2 +-
MissNationSharedUI/MissNationSharedUI.csproj | 4 +-
17 files changed, 351 insertions(+), 8 deletions(-)
create mode 100644 Mango.Core.Server/Mango.Core.Server.csproj
create mode 100644 Mango.Core/Mango.Core.csproj
create mode 100644 Mango.Database.Test/DatabaseTestBase.cs
create mode 100644 Mango.Database.Test/Mango.Database.Test.csproj
create mode 100644 Mango.Database.Test/UserDalTests.cs
create mode 100644 Mango.Database/DbContexts/DbContextBase.cs
create mode 100644 Mango.Database/Mango.Database.csproj
create mode 100644 Mango.Entities.Server/Mango.Entities.Server.csproj
create mode 100644 Mango.Entities/Mango.Entities.csproj
create mode 100644 Mango.Interfaces.Server/Mango.Interfaces.Server.csproj
create mode 100644 Mango.Interfaces/Mango.Interfaces.csproj
create mode 100644 Mango.Models/Mango.Models.csproj
diff --git a/Mango.Core.Server/Mango.Core.Server.csproj b/Mango.Core.Server/Mango.Core.Server.csproj
new file mode 100644
index 0000000..839e2d7
--- /dev/null
+++ b/Mango.Core.Server/Mango.Core.Server.csproj
@@ -0,0 +1,22 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.Server.dll
+
+
+
+
diff --git a/Mango.Core/Mango.Core.csproj b/Mango.Core/Mango.Core.csproj
new file mode 100644
index 0000000..86f45d1
--- /dev/null
+++ b/Mango.Core/Mango.Core.csproj
@@ -0,0 +1,15 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll
+
+
+
+
diff --git a/Mango.Database.Test/DatabaseTestBase.cs b/Mango.Database.Test/DatabaseTestBase.cs
new file mode 100644
index 0000000..e27ad26
--- /dev/null
+++ b/Mango.Database.Test/DatabaseTestBase.cs
@@ -0,0 +1,21 @@
+using AyCode.Database.DbContexts;
+using AyCode.Database.Tests;
+using Mango.Database.DbContexts;
+
+namespace Mango.Database.Test
+{
+ [TestClass]
+ public class DatabaseTestBase : AcDatabaseTestBase
+ {
+ [TestInitialize]
+ public void Setup()
+ {
+
+ }
+
+ [TestCleanup]
+ public void TearDown()
+ {
+ }
+ }
+}
\ No newline at end of file
diff --git a/Mango.Database.Test/Mango.Database.Test.csproj b/Mango.Database.Test/Mango.Database.Test.csproj
new file mode 100644
index 0000000..3f31bad
--- /dev/null
+++ b/Mango.Database.Test/Mango.Database.Test.csproj
@@ -0,0 +1,85 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+ false
+ true
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Database.Tests\bin\Debug\net8.0\AyCode.Core.Tests.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Database.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Database.Tests\bin\Debug\net8.0\AyCode.Database.Tests.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Models.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Models.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Services.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Services.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Utils.dll
+
+
+
+
+
+
+
+
diff --git a/Mango.Database.Test/UserDalTests.cs b/Mango.Database.Test/UserDalTests.cs
new file mode 100644
index 0000000..89ddaae
--- /dev/null
+++ b/Mango.Database.Test/UserDalTests.cs
@@ -0,0 +1,10 @@
+using AyCode.Database.Tests.Users;
+using AyCode.Entities.Users;
+using Microsoft.ApplicationInsights;
+
+namespace Mango.Database.Test;
+
+//[TestClass]
+//public class UserDalTests : AcUserDalTestBase
+//{
+//}
\ No newline at end of file
diff --git a/Mango.Database/DbContexts/DbContextBase.cs b/Mango.Database/DbContexts/DbContextBase.cs
new file mode 100644
index 0000000..6e1c700
--- /dev/null
+++ b/Mango.Database/DbContexts/DbContextBase.cs
@@ -0,0 +1,32 @@
+using AyCode.Database.DbContexts;
+using Microsoft.EntityFrameworkCore;
+
+namespace Mango.Database.DbContexts;
+
+public class DbContextBase : AcDbContextBase
+{
+ public DbContextBase() //: this(string.Empty)
+ {
+
+ }
+
+ public DbContextBase(string name) : base(name)
+ {
+ }
+
+ public DbContextBase(DbContextOptions options, string name) : base(options, name)
+ {
+ }
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+ base.OnConfiguring(optionsBuilder);
+
+ optionsBuilder.UseLazyLoadingProxies(true);
+ optionsBuilder.EnableDetailedErrors(true);
+
+ //optionsBuilder.UseSqlServer(Configuration.GetConnectionString("DeveloperDbConnection"));
+ var connString = string.Empty;//"Data Source=185.51.190.197;Initial Catalog=TIAM_DEV;Trusted_Connection=false;Encrypt=false;TrustServerCertificate=True;Connect Timeout=200;User ID=Anata_Development_Team;Password=v6f_?xNfg9N1;MultipleActiveResultSets=true";
+ optionsBuilder.UseSqlServer(connString);
+ }
+}
\ No newline at end of file
diff --git a/Mango.Database/Mango.Database.csproj b/Mango.Database/Mango.Database.csproj
new file mode 100644
index 0000000..3717faa
--- /dev/null
+++ b/Mango.Database/Mango.Database.csproj
@@ -0,0 +1,59 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Core.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Database.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Entities.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Interfaces.Server.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Models.dll
+
+
+ ..\..\..\..\Aycode\Source\AyCode.Core\AyCode.Services.Server\bin\Debug\net8.0\AyCode.Models.Server.dll
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Mango.Entities.Server/Mango.Entities.Server.csproj b/Mango.Entities.Server/Mango.Entities.Server.csproj
new file mode 100644
index 0000000..fa71b7a
--- /dev/null
+++ b/Mango.Entities.Server/Mango.Entities.Server.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Mango.Entities/Mango.Entities.csproj b/Mango.Entities/Mango.Entities.csproj
new file mode 100644
index 0000000..fa71b7a
--- /dev/null
+++ b/Mango.Entities/Mango.Entities.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Mango.Interfaces.Server/Mango.Interfaces.Server.csproj b/Mango.Interfaces.Server/Mango.Interfaces.Server.csproj
new file mode 100644
index 0000000..fa71b7a
--- /dev/null
+++ b/Mango.Interfaces.Server/Mango.Interfaces.Server.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Mango.Interfaces/Mango.Interfaces.csproj b/Mango.Interfaces/Mango.Interfaces.csproj
new file mode 100644
index 0000000..fa71b7a
--- /dev/null
+++ b/Mango.Interfaces/Mango.Interfaces.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/Mango.Models/Mango.Models.csproj b/Mango.Models/Mango.Models.csproj
new file mode 100644
index 0000000..fa71b7a
--- /dev/null
+++ b/Mango.Models/Mango.Models.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net8.0
+ enable
+ enable
+
+
+
diff --git a/MissNationBlazor.sln b/MissNationBlazor.sln
index 03ec9a4..bebdc28 100644
--- a/MissNationBlazor.sln
+++ b/MissNationBlazor.sln
@@ -13,6 +13,24 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MissNationBlazorWASM.Shared
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MissNationSharedUI", "MissNationSharedUI\MissNationSharedUI.csproj", "{B7790887-D399-4AA6-B3F4-2C332D83C637}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Core", "Mango.Core\Mango.Core.csproj", "{69E5377B-5938-4C08-AB7F-424EB353578A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Database", "Mango.Database\Mango.Database.csproj", "{7C58DF80-C636-4693-8AC2-6D92B503DCA5}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Entities", "Mango.Entities\Mango.Entities.csproj", "{17FE11C8-0821-4357-9BE0-6D96E948BECB}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Entities.Server", "Mango.Entities.Server\Mango.Entities.Server.csproj", "{51FFD293-3C1A-43D6-A272-2850AFC3F1D6}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Interfaces", "Mango.Interfaces\Mango.Interfaces.csproj", "{B9CAB99F-AF7D-4377-ACD1-97C5A0D703EA}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Interfaces.Server", "Mango.Interfaces.Server\Mango.Interfaces.Server.csproj", "{E966ABA3-C927-4BC0-96A2-9CB9BA60DE6D}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Models", "Mango.Models\Mango.Models.csproj", "{AC74712A-880D-4633-86A9-F02AA4A62E90}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Database.Test", "Mango.Database.Test\Mango.Database.Test.csproj", "{F12EB241-1360-4CC7-9078-EDD487F4A9FC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mango.Core.Server", "Mango.Core.Server\Mango.Core.Server.csproj", "{90AE435C-D257-4839-8AC5-F8D012A4F92C}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -41,6 +59,42 @@ Global
{B7790887-D399-4AA6-B3F4-2C332D83C637}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7790887-D399-4AA6-B3F4-2C332D83C637}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7790887-D399-4AA6-B3F4-2C332D83C637}.Release|Any CPU.Build.0 = Release|Any CPU
+ {69E5377B-5938-4C08-AB7F-424EB353578A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {69E5377B-5938-4C08-AB7F-424EB353578A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {69E5377B-5938-4C08-AB7F-424EB353578A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {69E5377B-5938-4C08-AB7F-424EB353578A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {7C58DF80-C636-4693-8AC2-6D92B503DCA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {7C58DF80-C636-4693-8AC2-6D92B503DCA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {7C58DF80-C636-4693-8AC2-6D92B503DCA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {7C58DF80-C636-4693-8AC2-6D92B503DCA5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {17FE11C8-0821-4357-9BE0-6D96E948BECB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {17FE11C8-0821-4357-9BE0-6D96E948BECB}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {17FE11C8-0821-4357-9BE0-6D96E948BECB}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {17FE11C8-0821-4357-9BE0-6D96E948BECB}.Release|Any CPU.Build.0 = Release|Any CPU
+ {51FFD293-3C1A-43D6-A272-2850AFC3F1D6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {51FFD293-3C1A-43D6-A272-2850AFC3F1D6}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {51FFD293-3C1A-43D6-A272-2850AFC3F1D6}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {51FFD293-3C1A-43D6-A272-2850AFC3F1D6}.Release|Any CPU.Build.0 = Release|Any CPU
+ {B9CAB99F-AF7D-4377-ACD1-97C5A0D703EA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B9CAB99F-AF7D-4377-ACD1-97C5A0D703EA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B9CAB99F-AF7D-4377-ACD1-97C5A0D703EA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B9CAB99F-AF7D-4377-ACD1-97C5A0D703EA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E966ABA3-C927-4BC0-96A2-9CB9BA60DE6D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E966ABA3-C927-4BC0-96A2-9CB9BA60DE6D}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E966ABA3-C927-4BC0-96A2-9CB9BA60DE6D}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E966ABA3-C927-4BC0-96A2-9CB9BA60DE6D}.Release|Any CPU.Build.0 = Release|Any CPU
+ {AC74712A-880D-4633-86A9-F02AA4A62E90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {AC74712A-880D-4633-86A9-F02AA4A62E90}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {AC74712A-880D-4633-86A9-F02AA4A62E90}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {AC74712A-880D-4633-86A9-F02AA4A62E90}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F12EB241-1360-4CC7-9078-EDD487F4A9FC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F12EB241-1360-4CC7-9078-EDD487F4A9FC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F12EB241-1360-4CC7-9078-EDD487F4A9FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F12EB241-1360-4CC7-9078-EDD487F4A9FC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {90AE435C-D257-4839-8AC5-F8D012A4F92C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {90AE435C-D257-4839-8AC5-F8D012A4F92C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {90AE435C-D257-4839-8AC5-F8D012A4F92C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {90AE435C-D257-4839-8AC5-F8D012A4F92C}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
diff --git a/MissNationBlazorHybrid/MissNationBlazorHybrid.csproj b/MissNationBlazorHybrid/MissNationBlazorHybrid.csproj
index e4df810..372dc65 100644
--- a/MissNationBlazorHybrid/MissNationBlazorHybrid.csproj
+++ b/MissNationBlazorHybrid/MissNationBlazorHybrid.csproj
@@ -58,9 +58,9 @@
-
-
-
+
+
+
diff --git a/MissNationBlazorWASM/Client/MissNationBlazorWASM.Client.csproj b/MissNationBlazorWASM/Client/MissNationBlazorWASM.Client.csproj
index f4a8d51..aaacc5c 100644
--- a/MissNationBlazorWASM/Client/MissNationBlazorWASM.Client.csproj
+++ b/MissNationBlazorWASM/Client/MissNationBlazorWASM.Client.csproj
@@ -7,8 +7,8 @@
-
-
+
+
diff --git a/MissNationBlazorWASM/Server/MissNationBlazorWASM.Server.csproj b/MissNationBlazorWASM/Server/MissNationBlazorWASM.Server.csproj
index 225c567..c476478 100644
--- a/MissNationBlazorWASM/Server/MissNationBlazorWASM.Server.csproj
+++ b/MissNationBlazorWASM/Server/MissNationBlazorWASM.Server.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/MissNationSharedUI/MissNationSharedUI.csproj b/MissNationSharedUI/MissNationSharedUI.csproj
index 1b8ecd8..da800fa 100644
--- a/MissNationSharedUI/MissNationSharedUI.csproj
+++ b/MissNationSharedUI/MissNationSharedUI.csproj
@@ -12,8 +12,8 @@
-
-
+
+