start polygon

This commit is contained in:
Riccardo Usardi committed 2025-07-10 21:52:06 +02:00
1 parent 5aca82244e
commit 6e5e25a141
22 files changed
+431 -210

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace uWine.Core.Domain.Entities
{
public class Coordinates
{
public double Latitude { get; set; }
public double Longitude { get; set; }
public Coordinates(double latitude, double longitude)
{
Latitude = latitude;
Longitude = longitude;
}
}
}
+17 -3
View File
@@ -1,6 +1,8 @@
using System;
using MySqlConnector;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using System.Threading.Tasks;
@@ -12,9 +14,21 @@ namespace uWine.Core.Domain.Entities
public string Name { get; set; }
public string Location { get; set; }
public double Hectares { get; set; }
public double Latitude { get; set; }
public double Longitude { get; set; }
public Coordinates Coordinates { get; set; }
public DateTime CreationDate { get; set; }
public List<Row>? Rows { get; set; }
public Dictionary<int, Coordinates> Area { get; set; }
public static Vineyard FromRecord(MySqlDataReader reader)
{
return new Vineyard
{
Id = reader.GetInt32(0),
Name = reader.GetString(1),
Location = reader.GetString(2),
Hectares = reader.GetDouble(3),
Coordinates = new Coordinates( reader.GetDouble(4),reader.GetDouble(5)),
};
}
}
}
@@ -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+2db95255706ee58fdfd1cd80269882ddfb6a08a0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+5aca82244e19b339516cae671f01e897766fe699")]
[assembly: System.Reflection.AssemblyProductAttribute("uWine.Core.Domain")]
[assembly: System.Reflection.AssemblyTitleAttribute("uWine.Core.Domain")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
@@ -1 +1 @@
90a65fc50c45509dd6f76eaeb434d71392cfcabf236fe20248645f330d5292ae
af0469651414fb1cc216fc5d5e51b3858d3ededd3bebba462f6393cc8502389f
-59
View File
@@ -54,60 +54,6 @@
}
}
}
},
"net8.0/linux-x64": {
"Microsoft.Extensions.DependencyInjection.Abstractions/8.0.2": {
"type": "package",
"compile": {
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/_._": {}
}
},
"Microsoft.Extensions.Logging.Abstractions/8.0.2": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2"
},
"compile": {
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net8.0/Microsoft.Extensions.Logging.Abstractions.dll": {
"related": ".xml"
}
},
"build": {
"buildTransitive/net6.0/Microsoft.Extensions.Logging.Abstractions.targets": {}
}
},
"MySqlConnector/2.4.0": {
"type": "package",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "8.0.2",
"Microsoft.Extensions.Logging.Abstractions": "8.0.2"
},
"compile": {
"lib/net8.0/MySqlConnector.dll": {
"related": ".xml"
}
},
"runtime": {
"lib/net8.0/MySqlConnector.dll": {
"related": ".xml"
}
}
}
}
},
"libraries": {
@@ -319,11 +265,6 @@
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
}
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"version": 2,
"dgSpecHash": "dpwl0H+ZmD8=",
"dgSpecHash": "xoU7wD+w/v0=",
"success": true,
"projectFilePath": "M:\\uv\\uWine\\uWine.Core.Domain\\uWine.Core.Domain.csproj",
"expectedPackageFiles": [
@@ -69,11 +69,6 @@
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.400/PortableRuntimeIdentifierGraph.json"
}
},
"runtimes": {
"linux-x64": {
"#import": []
}
}
}
}