Add work plane property saving
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.WorkPlanes;
|
||||
using StructureHelperLogics.Models.CrossSections;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -15,6 +16,8 @@ namespace DataAccess.DTOs
|
||||
[JsonProperty("SectionRepository")]
|
||||
public ICrossSectionRepository SectionRepository { get; set; }
|
||||
|
||||
public IWorkPlaneProperty WorkPlaneProperty { get; set; }
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
|
||||
@@ -89,6 +89,7 @@ namespace DataAccess.DTOs
|
||||
{ (typeof(VisualAnalysisDTO), "VisualAnalysis") },
|
||||
{ (typeof(VisualPropertyDTO), "VisualProperty") },
|
||||
{ (typeof(UserCrackInputDataDTO), "UserCrackInputData") },
|
||||
{ (typeof(WorkPlanePropertyDTO), "WorkPlanePropertyDTO") },
|
||||
};
|
||||
return newList;
|
||||
}
|
||||
|
||||
31
DataAccess/DTOs/DTOEntities/WorkPlanePropertyDTO.cs
Normal file
31
DataAccess/DTOs/DTOEntities/WorkPlanePropertyDTO.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.WorkPlanes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
{
|
||||
public class WorkPlanePropertyDTO : IWorkPlaneProperty
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("GridSize")]
|
||||
public double GridSize { get; set; } = 0.05;
|
||||
[JsonProperty("Width")]
|
||||
public double Width { get; set; } = 1.2;
|
||||
[JsonProperty("Height")]
|
||||
public double Height { get; set; } = 1.2;
|
||||
[JsonProperty("AxisLineThickness")]
|
||||
public double AxisLineThickness { get; set; } = 2;
|
||||
[JsonProperty("GridLineThickness")]
|
||||
public double GridLineThickness { get; set; } = 0.25;
|
||||
|
||||
public WorkPlanePropertyDTO(Guid id)
|
||||
{
|
||||
Id = id;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user