コード例 #1
0
 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) }
     };
 }
コード例 #2
0
 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}"): "" }
     };
 }