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

+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)),
};
}
}
}