diff --git a/TIAM.Database.Test/DatabaseTest.cs b/TIAM.Database.Test/DatabaseTest.cs
new file mode 100644
index 00000000..048323b9
--- /dev/null
+++ b/TIAM.Database.Test/DatabaseTest.cs
@@ -0,0 +1,35 @@
+using Microsoft.EntityFrameworkCore;
+using TIAM.Database.DbContexts;
+
+namespace TIAM.Database.Test
+{
+ [TestClass]
+ public class DatabaseTest
+ {
+ [TestInitialize]
+ public void Setup()
+ {
+ }
+
+ [TestCleanup]
+ public void TearDown()
+ {
+ }
+
+ [TestMethod]
+ public void MsTest_Test()
+ {
+ Assert.IsTrue(true);
+ }
+
+ [TestMethod]
+ public void DatabaseExistsTest()
+ {
+ using var ctx = new TransferDestinationDbContext();
+ //ctx.Database.OpenConnection();
+
+ var isConnected = ctx.Database.CanConnect();
+ Assert.IsTrue(isConnected);
+ }
+ }
+}
\ No newline at end of file
diff --git a/TIAM.Database.Test/GlobalUsings.cs b/TIAM.Database.Test/GlobalUsings.cs
new file mode 100644
index 00000000..ab67c7ea
--- /dev/null
+++ b/TIAM.Database.Test/GlobalUsings.cs
@@ -0,0 +1 @@
+global using Microsoft.VisualStudio.TestTools.UnitTesting;
\ No newline at end of file
diff --git a/TIAM.Database.Test/TIAM.Database.Test.csproj b/TIAM.Database.Test/TIAM.Database.Test.csproj
new file mode 100644
index 00000000..7b3cce2c
--- /dev/null
+++ b/TIAM.Database.Test/TIAM.Database.Test.csproj
@@ -0,0 +1,52 @@
+
+
+
+ net7.0
+ enable
+ enable
+
+ false
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.Server.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Database.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.Server.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.Server.dll
+
+
+
+
diff --git a/TIAM.Database/DataLayers/TransferDestinations/TransferDestinationDal.cs b/TIAM.Database/DataLayers/TransferDestinations/TransferDestinationDal.cs
new file mode 100644
index 00000000..b80ac84c
--- /dev/null
+++ b/TIAM.Database/DataLayers/TransferDestinations/TransferDestinationDal.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TIAM.Database.DataLayers.TransferDestinations
+{
+ internal class TransferDestinationDal
+ {
+ }
+}
diff --git a/TIAM.Database/DbContexts/TiamDbContextBase.cs b/TIAM.Database/DbContexts/TiamDbContextBase.cs
new file mode 100644
index 00000000..9057ee70
--- /dev/null
+++ b/TIAM.Database/DbContexts/TiamDbContextBase.cs
@@ -0,0 +1,35 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Security;
+using System.Text;
+using System.Threading.Tasks;
+using AyCode.Database.DbContexts;
+using Microsoft.EntityFrameworkCore;
+
+namespace TIAM.Database.DbContexts
+{
+ public class TiamDbContextBase : DbContextBase
+ {
+ public TiamDbContextBase() //: this(string.Empty)
+ {
+
+ }
+
+ public TiamDbContextBase(string name) : base(name)
+ {
+ }
+
+ public TiamDbContextBase(DbContextOptions options, string name) : base(options, name)
+ {
+ }
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+ base.OnConfiguring(optionsBuilder);
+
+ var connString = "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);
+ }
+ }
+}
diff --git a/TIAM.Database/DbContexts/TransferDestinationDbContext.cs b/TIAM.Database/DbContexts/TransferDestinationDbContext.cs
new file mode 100644
index 00000000..2d41381d
--- /dev/null
+++ b/TIAM.Database/DbContexts/TransferDestinationDbContext.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Microsoft.EntityFrameworkCore;
+using TIAM.Entities.TransferDestinations;
+
+namespace TIAM.Database.DbContexts
+{
+ public class TransferDestinationDbContext : TiamDbContextBase
+ {
+ public DbSet TransferDestinations { get; set; }
+
+ public TransferDestinationDbContext()
+ {
+
+ }
+
+ public TransferDestinationDbContext(string name) : base(name)
+ {
+ }
+
+ public TransferDestinationDbContext(DbContextOptions options, string name) : base(options, name)
+ {
+ }
+ }
+}
diff --git a/TIAM.Database/TIAM.Database.csproj b/TIAM.Database/TIAM.Database.csproj
new file mode 100644
index 00000000..58f5ee9b
--- /dev/null
+++ b/TIAM.Database/TIAM.Database.csproj
@@ -0,0 +1,48 @@
+
+
+
+ net7.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.Server.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Database.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.Server.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.Server.dll
+
+
+
+
diff --git a/TIAM.Entities.Server/TIAM.Entities.Server.csproj b/TIAM.Entities.Server/TIAM.Entities.Server.csproj
new file mode 100644
index 00000000..cfadb03d
--- /dev/null
+++ b/TIAM.Entities.Server/TIAM.Entities.Server.csproj
@@ -0,0 +1,9 @@
+
+
+
+ net7.0
+ enable
+ enable
+
+
+
diff --git a/TIAM.Entities/TIAM.Entities.csproj b/TIAM.Entities/TIAM.Entities.csproj
new file mode 100644
index 00000000..f0eba279
--- /dev/null
+++ b/TIAM.Entities/TIAM.Entities.csproj
@@ -0,0 +1,30 @@
+
+
+
+ net7.0
+ enable
+ enable
+
+
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.Server.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.Server.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.dll
+
+
+ ..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.Server.dll
+
+
+
+
diff --git a/TIAM.Entities/TransferDestinations/TransferDestination.cs b/TIAM.Entities/TransferDestinations/TransferDestination.cs
new file mode 100644
index 00000000..39b3dc9a
--- /dev/null
+++ b/TIAM.Entities/TransferDestinations/TransferDestination.cs
@@ -0,0 +1,44 @@
+using System.ComponentModel.DataAnnotations.Schema;
+using AyCode.Entities.Interfaces;
+using AyCode.Interfaces.TimeStampInfo;
+
+namespace TIAM.Entities.TransferDestinations
+{
+ [Table("TransferDestination")]
+ public class TransferDestination : IEntityGuid, ITimeStampInfo
+ {
+ [DatabaseGenerated(DatabaseGeneratedOption.None)]
+ public Guid Id
+ {
+ get;
+ set;
+ }
+ public string Name
+ {
+ get;
+ set;
+ }
+
+ public string Description
+ {
+ get;
+ set;
+ }
+
+ public decimal Longitude
+ {
+ get;
+ set;
+ }
+
+ public decimal Latitude
+ {
+ get;
+ set;
+ }
+
+ public DateTime Created { get; set; }
+ public DateTime Modified { get; set; }
+ }
+}
+
diff --git a/TIAMDLL.Common/obj/Release/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/TIAMDLL.Common/obj/Release/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs
deleted file mode 100644
index 4257f4bc..00000000
--- a/TIAMDLL.Common/obj/Release/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs
+++ /dev/null
@@ -1,4 +0,0 @@
-//
-using System;
-using System.Reflection;
-[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")]
diff --git a/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.AssemblyInfo.cs b/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.AssemblyInfo.cs
deleted file mode 100644
index cafbbcef..00000000
--- a/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.AssemblyInfo.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-using System;
-using System.Reflection;
-
-[assembly: System.Reflection.AssemblyCompanyAttribute("TIAMDLL.Common")]
-[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
-[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
-[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
-[assembly: System.Reflection.AssemblyProductAttribute("TIAMDLL.Common")]
-[assembly: System.Reflection.AssemblyTitleAttribute("TIAMDLL.Common")]
-[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
-
-// Generated by the MSBuild WriteCodeFragment class.
-
diff --git a/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.GeneratedMSBuildEditorConfig.editorconfig b/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.GeneratedMSBuildEditorConfig.editorconfig
deleted file mode 100644
index dbc25368..00000000
--- a/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.GeneratedMSBuildEditorConfig.editorconfig
+++ /dev/null
@@ -1,11 +0,0 @@
-is_global = true
-build_property.TargetFramework = net7.0
-build_property.TargetPlatformMinVersion =
-build_property.UsingMicrosoftNETSdkWeb =
-build_property.ProjectTypeGuids =
-build_property.InvariantGlobalization =
-build_property.PlatformNeutralAssembly =
-build_property.EnforceExtendedAnalyzerRules =
-build_property._SupportedPlatformList = Linux,macOS,Windows
-build_property.RootNamespace = TIAMDLL.Common
-build_property.ProjectDir = C:\Users\Ádám\Source\Repos\TourIAm\TIAMDLL.Common\
diff --git a/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.GlobalUsings.g.cs b/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.GlobalUsings.g.cs
deleted file mode 100644
index 8578f3d0..00000000
--- a/TIAMDLL.Common/obj/Release/net7.0/TIAMDLL.Common.GlobalUsings.g.cs
+++ /dev/null
@@ -1,8 +0,0 @@
-//
-global using global::System;
-global using global::System.Collections.Generic;
-global using global::System.IO;
-global using global::System.Linq;
-global using global::System.Net.Http;
-global using global::System.Threading;
-global using global::System.Threading.Tasks;
diff --git a/TIAMMobileApp/Services/TransferDataService.cs b/TIAMMobileApp/Services/TransferDataService.cs
index fd59fb15..2c0b4719 100644
--- a/TIAMMobileApp/Services/TransferDataService.cs
+++ b/TIAMMobileApp/Services/TransferDataService.cs
@@ -1,4 +1,5 @@
using System.Net.Http.Json;
+using TIAM.Entities.TransferDestinations;
using TIAMWebApp.Shared.Application.Interfaces;
using TIAMWebApp.Shared.Application.Models;
diff --git a/TIAMSharedUI/Pages/ChooseDestination.razor b/TIAMSharedUI/Pages/ChooseDestination.razor
index 45f397d1..4f6fa033 100644
--- a/TIAMSharedUI/Pages/ChooseDestination.razor
+++ b/TIAMSharedUI/Pages/ChooseDestination.razor
@@ -13,7 +13,7 @@ else
@foreach (var dest in TransferDestinations)
{
-
+
}
diff --git a/TIAMSharedUI/Pages/ChooseDestination.razor.cs b/TIAMSharedUI/Pages/ChooseDestination.razor.cs
index d3f94ec4..75818932 100644
--- a/TIAMSharedUI/Pages/ChooseDestination.razor.cs
+++ b/TIAMSharedUI/Pages/ChooseDestination.razor.cs
@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
+using TIAM.Entities.TransferDestinations;
using TIAMWebApp.Shared.Application.Interfaces;
using TIAMWebApp.Shared.Application.Models;
@@ -40,7 +41,7 @@ namespace TIAMSharedUI.Pages
get;
set;
}
- protected async override Task OnInitializedAsync()
+ protected override async Task OnInitializedAsync()
{
TransferDestinations = (await TransferDataService.GetDestinationsAsync()).ToList();
}
diff --git a/TIAMSharedUI/Pages/User/Home.razor.cs b/TIAMSharedUI/Pages/User/Home.razor.cs
new file mode 100644
index 00000000..b8ba5846
--- /dev/null
+++ b/TIAMSharedUI/Pages/User/Home.razor.cs
@@ -0,0 +1,12 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TIAMSharedUI.Pages.User
+{
+ public partial class Home
+ {
+ }
+}
diff --git a/TIAMWebApp/Client/Services/TransferDataService.cs b/TIAMWebApp/Client/Services/TransferDataService.cs
index db9ff57d..fc8f40d7 100644
--- a/TIAMWebApp/Client/Services/TransferDataService.cs
+++ b/TIAMWebApp/Client/Services/TransferDataService.cs
@@ -1,4 +1,5 @@
using System.Net.Http.Json;
+using TIAM.Entities.TransferDestinations;
using TIAMWebApp.Shared.Application.Interfaces;
using TIAMWebApp.Shared.Application.Models;
@@ -12,6 +13,7 @@ namespace TIAMWebApp.Client.Services
{
this.http = http;
}
+
public Task GetDestinationsAsync()
{
return http.GetFromJsonAsync("TransferDataAPI");
diff --git a/TIAMWebApp/Server/Controllers/TransferDataAPIController.cs b/TIAMWebApp/Server/Controllers/TransferDataAPIController.cs
index 96c629e6..74d6d6ef 100644
--- a/TIAMWebApp/Server/Controllers/TransferDataAPIController.cs
+++ b/TIAMWebApp/Server/Controllers/TransferDataAPIController.cs
@@ -1,5 +1,8 @@
using Microsoft.AspNetCore.Mvc;
+using Microsoft.EntityFrameworkCore;
using System.Reflection.Metadata;
+using TIAM.Database.DbContexts;
+using TIAM.Entities.TransferDestinations;
using TIAMWebApp.Shared.Application.Models;
namespace TIAMWebApp.Server.Controllers
@@ -8,30 +11,35 @@ namespace TIAMWebApp.Server.Controllers
[Route("[controller]")]
public class TransferDataAPIController : ControllerBase
{
- private static readonly TransferDestination[] Names = new TransferDestination[]
- {
- /*"Castle of Buda", "Hungarian National Museum", "Parliament of Hungary", "Heroes square", "Gellert Hill", "Margaret Island"*/
- new() { DestinationId = 1, DestinationName = "Airport", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
- new() { DestinationId = 2, DestinationName = "Castle of Buda", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
- new() { DestinationId = 3, DestinationName = "Hungarian National Museum", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
- new() { DestinationId = 4, DestinationName = "Parliament of Hungary", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
- new() { DestinationId = 5, DestinationName = "Heroes square", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
- new() { DestinationId = 6, DestinationName = "Gellert Hill", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
- new() { DestinationId = 6, DestinationName = "Margaret Island", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f }
+ //private static readonly TransferDestination[] Names = new TransferDestination[]
+ //{
+ // /*"Castle of Buda", "Hungarian National Museum", "Parliament of Hungary", "Heroes square", "Gellert Hill", "Margaret Island"*/
+ // new() { DestinationId = 1, DestinationName = "Airport", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
+ // new() { DestinationId = 2, DestinationName = "Castle of Buda", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
+ // new() { DestinationId = 3, DestinationName = "Hungarian National Museum", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
+ // new() { DestinationId = 4, DestinationName = "Parliament of Hungary", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
+ // new() { DestinationId = 5, DestinationName = "Heroes square", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
+ // new() { DestinationId = 6, DestinationName = "Gellert Hill", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f },
+ // new() { DestinationId = 6, DestinationName = "Margaret Island", DestinationDescription = "International airport of Budapest", DestinationLatitude = 42.234444f, DestinationLongitude = 39.100010f }
- };
+ //};
+ private readonly TransferDestinationDbContext _transferDestinationDbContext;
private readonly ILogger _logger;
- public TransferDataAPIController(ILogger logger)
+ public TransferDataAPIController(ILogger logger, TransferDestinationDbContext transferDestinationDbContext)
{
_logger = logger;
+ _transferDestinationDbContext = transferDestinationDbContext;
}
[HttpGet]
- public IEnumerable Get()
+ public async Task> Get()
{
- return Enumerable.Range(1, 5).Select(index => Names[Random.Shared.Next(Names.Length)]).ToArray();
+ //return new JsonResult(await _transferDestinationDbContext.TransferDestinations.ToListAsync());
+
+ var result = await _transferDestinationDbContext.TransferDestinations.ToListAsync();
+ return result;
}
}
}
\ No newline at end of file
diff --git a/TIAMWebApp/Server/Program.cs b/TIAMWebApp/Server/Program.cs
index 7318e4a6..c833b303 100644
--- a/TIAMWebApp/Server/Program.cs
+++ b/TIAMWebApp/Server/Program.cs
@@ -1,5 +1,11 @@
+using Microsoft.EntityFrameworkCore;
+using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
-using Microsoft.AspNetCore.ResponseCompression;
+using Microsoft.Extensions.Configuration;
+using Microsoft.Extensions.DependencyInjection;
+using Microsoft.Extensions.Hosting;
+using TIAM.Entities.TransferDestinations;
+using TIAM.Database.DbContexts;
var builder = WebApplication.CreateBuilder(args);
@@ -7,6 +13,7 @@ var builder = WebApplication.CreateBuilder(args);
builder.Services.AddControllersWithViews();
builder.Services.AddRazorPages();
+builder.Services.AddDbContext(options => options.UseSqlServer(builder.Configuration.GetConnectionString("DeveloperDbConnection")));;
var app = builder.Build();
diff --git a/TIAMWebApp/Server/TIAMWebApp.Server.csproj b/TIAMWebApp/Server/TIAMWebApp.Server.csproj
index d0a55207..6e837648 100644
--- a/TIAMWebApp/Server/TIAMWebApp.Server.csproj
+++ b/TIAMWebApp/Server/TIAMWebApp.Server.csproj
@@ -9,12 +9,40 @@
+
+
+
+
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.Server.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Database.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.Server.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.Server.dll
+
+
+
diff --git a/TIAMWebApp/Server/appsettings.json b/TIAMWebApp/Server/appsettings.json
index 10f68b8c..a6d64f47 100644
--- a/TIAMWebApp/Server/appsettings.json
+++ b/TIAMWebApp/Server/appsettings.json
@@ -1,4 +1,7 @@
{
+ "ConnectionStrings": {
+ "DeveloperDbConnection": "Data Source=185.51.190.197;Initial Catalog=TIAM_DEV;Trusted_Connection=False;Connect Timeout=200;User ID=Anata_Development_Team;Password=v6f_?xNfg9N1;MultipleActiveResultSets=true"
+ },
"Logging": {
"LogLevel": {
"Default": "Information",
diff --git a/TIAMWebApp/Shared/Interfaces/ITransferDataService.cs b/TIAMWebApp/Shared/Interfaces/ITransferDataService.cs
index 4ccad466..aa4aa35e 100644
--- a/TIAMWebApp/Shared/Interfaces/ITransferDataService.cs
+++ b/TIAMWebApp/Shared/Interfaces/ITransferDataService.cs
@@ -1,4 +1,5 @@
-using TIAMWebApp.Shared.Application.Models;
+using TIAM.Entities.TransferDestinations;
+using TIAMWebApp.Shared.Application.Models;
namespace TIAMWebApp.Shared.Application.Interfaces
{
diff --git a/TIAMWebApp/Shared/Models/TransferDestination.cs b/TIAMWebApp/Shared/Models/TransferDestination.cs
deleted file mode 100644
index b94e6de3..00000000
--- a/TIAMWebApp/Shared/Models/TransferDestination.cs
+++ /dev/null
@@ -1,43 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel.DataAnnotations.Schema;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace TIAMWebApp.Shared.Application.Models
-{
- [Table("TransferDestinations")]
- public class TransferDestination
- {
- public int DestinationId
- {
- get;
- set;
- }
- public string DestinationName
- {
- get;
- set;
- }
-
- public string DestinationDescription
- {
- get;
- set;
- }
-
- public float DestinationLongitude
- {
- get;
- set;
- }
-
- public float DestinationLatitude
- {
- get;
- set;
- }
- }
-}
-
diff --git a/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj b/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj
index f275be49..118af6d5 100644
--- a/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj
+++ b/TIAMWebApp/Shared/TIAMWebApp.Shared.Application.csproj
@@ -13,4 +13,31 @@
+
+
+
+
+
+
+
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Core.Server.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Entities.Server.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.dll
+
+
+ ..\..\..\AyCode.Core\AyCode.Database\bin\Debug\net7.0\AyCode.Interfaces.Server.dll
+
+
diff --git a/TourIAmProject.sln b/TourIAmProject.sln
index 9a40a445..ac142c52 100644
--- a/TourIAmProject.sln
+++ b/TourIAmProject.sln
@@ -13,6 +13,14 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TIAMMobileApp", "TIAMMobile
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TIAMSharedUI", "TIAMSharedUI\TIAMSharedUI.csproj", "{3A24B495-45C4-4B38-B5C3-B1FD83490764}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TIAM.Database", "TIAM.Database\TIAM.Database.csproj", "{DABD68DB-9C9E-4A05-961F-3F1E4CAFB67C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TIAM.Database.Test", "TIAM.Database.Test\TIAM.Database.Test.csproj", "{E6DD4AC5-A797-4341-8B70-E2AF647E2AE2}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TIAM.Entities", "TIAM.Entities\TIAM.Entities.csproj", "{1DAB894A-376F-4F94-BDF1-452F901941F7}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TIAM.Entities.Server", "TIAM.Entities.Server\TIAM.Entities.Server.csproj", "{BDDF5F32-D275-4BBB-9C81-8DCB1025A935}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -41,6 +49,22 @@ Global
{3A24B495-45C4-4B38-B5C3-B1FD83490764}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3A24B495-45C4-4B38-B5C3-B1FD83490764}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3A24B495-45C4-4B38-B5C3-B1FD83490764}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DABD68DB-9C9E-4A05-961F-3F1E4CAFB67C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DABD68DB-9C9E-4A05-961F-3F1E4CAFB67C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DABD68DB-9C9E-4A05-961F-3F1E4CAFB67C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DABD68DB-9C9E-4A05-961F-3F1E4CAFB67C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E6DD4AC5-A797-4341-8B70-E2AF647E2AE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E6DD4AC5-A797-4341-8B70-E2AF647E2AE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E6DD4AC5-A797-4341-8B70-E2AF647E2AE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E6DD4AC5-A797-4341-8B70-E2AF647E2AE2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1DAB894A-376F-4F94-BDF1-452F901941F7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1DAB894A-376F-4F94-BDF1-452F901941F7}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1DAB894A-376F-4F94-BDF1-452F901941F7}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1DAB894A-376F-4F94-BDF1-452F901941F7}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BDDF5F32-D275-4BBB-9C81-8DCB1025A935}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BDDF5F32-D275-4BBB-9C81-8DCB1025A935}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BDDF5F32-D275-4BBB-9C81-8DCB1025A935}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BDDF5F32-D275-4BBB-9C81-8DCB1025A935}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE