public NewAssignmentFromObj(TypeStructure typeStructure, Types.JSClass classType) : base("FromObjectAssignmentProperty") { childRenderbles.Add((JSRenderble)DI.Get <IPropertyComment>(typeStructure)); base.tagValues = new Dictionary <string, string> { { propertyNameTag, typeStructure.Name }, { typeTag, Configuration.Instance.ModelsNameFactory(typeStructure.TypeName) } }; }
public NewDirectAssignment(TypeStructure typeStructure, Types.JSClass classType) : base("DirectAssignmentProperty") { childRenderbles.Add((JSRenderble)DI.Get <IPropertyComment>(typeStructure)); base.tagValues = new Dictionary <string, string> { { propertyNameTag, typeStructure.Name }, { typeTag, Configuration.Instance.ModelsNameFactory(typeStructure.TypeName) }, { parameterTag, typeStructure.Properties.Any() ? typeStructure.Properties.Select(x => $"{typeStructure.Name}.{x.Name}").Aggregate((a, b) => $"{a},{b}"): "" } }; }