Fix cloninng BeamShearAction
This commit is contained in:
28
DataAccess/DTOs/DTOEntities/BeamShearAnalysisDTO.cs
Normal file
28
DataAccess/DTOs/DTOEntities/BeamShearAnalysisDTO.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Analyses;
|
||||
using StructureHelperLogics.Models.Analyses;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace DataAccess.DTOs.DTOEntities
|
||||
{
|
||||
public class BeamShearAnalysisDTO : IBeamShearAnalysis
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("Tags")]
|
||||
public string Tags { get; set; }
|
||||
[JsonProperty("Comment")]
|
||||
public string Comment { get; set; } = string.Empty;
|
||||
[JsonProperty("Color")]
|
||||
public Color Color { get; set; }
|
||||
public IVersionProcessor VersionProcessor { get; set; } = new VersionProcessorDTO();
|
||||
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
19
DataAccess/DTOs/DTOEntities/BeamShearDTO.cs
Normal file
19
DataAccess/DTOs/DTOEntities/BeamShearDTO.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperLogics.Models.BeamShears;
|
||||
|
||||
namespace DataAccess.DTOs.DTOEntities
|
||||
{
|
||||
public class BeamShearDTO : IBeamShear
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Repository")]
|
||||
public IBeamShearRepository Repository { get; set; }
|
||||
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
26
DataAccess/DTOs/DTOEntities/BeamShearRepositoryDTO.cs
Normal file
26
DataAccess/DTOs/DTOEntities/BeamShearRepositoryDTO.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Calculators;
|
||||
using StructureHelperCommon.Models.Forces;
|
||||
using StructureHelperLogics.Models.BeamShears;
|
||||
|
||||
namespace DataAccess.DTOs.DTOEntities
|
||||
{
|
||||
public class BeamShearRepositoryDTO : IBeamShearRepository
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Actions")]
|
||||
public List<IBeamShearAction> Actions { get; } = new();
|
||||
[JsonProperty("Calculators")]
|
||||
public List<ICalculator> Calculators { get; } = new();
|
||||
[JsonProperty("Sections")]
|
||||
public List<IBeamShearSection> Sections { get; } = new();
|
||||
[JsonProperty("Stirrups")]
|
||||
public List<IStirrup> Stirrups { get; } = new();
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
29
DataAccess/DTOs/DTOEntities/ConcentratedForceDTO.cs
Normal file
29
DataAccess/DTOs/DTOEntities/ConcentratedForceDTO.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Forces;
|
||||
|
||||
namespace DataAccess.DTOs.DTOEntities
|
||||
{
|
||||
public class ConcentratedForceDTO : IConcentratedForce
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[JsonProperty("ForceValue")]
|
||||
public IForceTuple ForceValue { get; set; }
|
||||
[JsonProperty("ForceCoordinate")]
|
||||
public double ForceCoordinate { get; set; }
|
||||
[JsonProperty("RelativeLoadLevel")]
|
||||
public double RelativeLoadLevel { get; set; }
|
||||
[JsonProperty("LoadRatio")]
|
||||
public double LoadRatio { get; set; }
|
||||
[JsonProperty("CombinationProperty")]
|
||||
public IFactoredCombinationProperty CombinationProperty { get; set; }
|
||||
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,13 +1,6 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Infrastructures.Interfaces;
|
||||
using StructureHelperCommon.Models.Analyses;
|
||||
using StructureHelperLogic.Models.Analyses;
|
||||
using StructureHelperLogics.Models.Analyses;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Media;
|
||||
|
||||
namespace DataAccess.DTOs
|
||||
@@ -15,7 +8,7 @@ namespace DataAccess.DTOs
|
||||
public class CrossSectionNdmAnalysisDTO : ICrossSectionNdmAnalysis
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; set; }
|
||||
public Guid Id { get; set;}
|
||||
[JsonProperty("Name")]
|
||||
public string Name { get; set; }
|
||||
[JsonProperty("Tags")]
|
||||
|
||||
31
DataAccess/DTOs/DTOEntities/DistributedLoadDTO.cs
Normal file
31
DataAccess/DTOs/DTOEntities/DistributedLoadDTO.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Newtonsoft.Json;
|
||||
using StructureHelperCommon.Models.Forces;
|
||||
|
||||
namespace DataAccess.DTOs.DTOEntities
|
||||
{
|
||||
public class DistributedLoadDTO : IDistributedLoad
|
||||
{
|
||||
[JsonProperty("Id")]
|
||||
public Guid Id { get; }
|
||||
[JsonProperty("Name")]
|
||||
public string Name { get; set; } = string.Empty;
|
||||
[JsonProperty("LoadValue")]
|
||||
public IForceTuple LoadValue { get; set; }
|
||||
[JsonProperty("StartCoordinate")]
|
||||
public double StartCoordinate { get; set; }
|
||||
[JsonProperty("EndCoordinate")]
|
||||
public double EndCoordinate { get; set; }
|
||||
[JsonProperty("RelativeLoadLevel")]
|
||||
public double RelativeLoadLevel { get; set; }
|
||||
[JsonProperty("LoadRatio")]
|
||||
public double LoadRatio { get; set; }
|
||||
[JsonProperty("CombinationProperty")]
|
||||
public IFactoredCombinationProperty CombinationProperty { get; set; }
|
||||
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user