Change beam shear calculator
This commit is contained in:
@@ -6,7 +6,7 @@ namespace DataAccess.DTOs
|
||||
{
|
||||
internal class PrimitiveVisualPropertyFromDTOConvertStrategy : ConvertStrategy<PrimitiveVisualProperty, PrimitiveVisualPropertyDTO>
|
||||
{
|
||||
private IUpdateStrategy<IPrimitiveVisualProperty> _updateStrategy;
|
||||
private IUpdateStrategy<IPrimitiveVisualProperty> updateStrategy;
|
||||
|
||||
public PrimitiveVisualPropertyFromDTOConvertStrategy(Dictionary<(Guid id, Type type), ISaveable> referenceDictionary, IShiftTraceLogger traceLogger) : base(referenceDictionary, traceLogger)
|
||||
{
|
||||
@@ -14,9 +14,10 @@ namespace DataAccess.DTOs
|
||||
|
||||
public override PrimitiveVisualProperty GetNewItem(PrimitiveVisualPropertyDTO source)
|
||||
{
|
||||
_updateStrategy ??= new PrimitiveVisualPropertyUpdateStrategy();
|
||||
updateStrategy ??= new PrimitiveVisualPropertyUpdateStrategy();
|
||||
ChildClass = this;
|
||||
NewItem = new(source.Id);
|
||||
updateStrategy.Update(NewItem, source);
|
||||
return NewItem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ namespace DataAccess.DTOs
|
||||
_updateStrategy ??= new PrimitiveVisualPropertyUpdateStrategy();
|
||||
ChildClass = this;
|
||||
NewItem = new(source.Id);
|
||||
_updateStrategy.Update(NewItem, source);
|
||||
return NewItem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,6 +13,10 @@ namespace DataAccess.DTOs
|
||||
public double RelativeEffectiveDepthRangeValue { get; set; } = 3.3;
|
||||
[JsonProperty("StepCount")]
|
||||
public int StepCount { get; set; } = 55;
|
||||
[JsonProperty("SectionLengthMaxValue")]
|
||||
public double RelativeEffectiveDepthSectionLengthMaxValue { get; set; } = 3;
|
||||
[JsonProperty("LengthMinValue")]
|
||||
public double RelativeEffectiveDepthSectionLengthMinValue { get; set; } = 0;
|
||||
|
||||
public BeamShearDesignRangePropertyDTO(Guid id)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user