Skip to content

Commit

Permalink
Collection convert update / fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Markus Zorn committed Oct 7, 2011
1 parent ec2a3fd commit 3edd59c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,5 @@ public abstract class ServiceAttributePredefinition
public String AttributeName;
[DataMember]
public String Comment;

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ public class ServiceEdgePredefinition
[DataMember]
public List<UnstructuredProperty> UnstructuredProperties;


public EdgePredefinition ToEdgePredefinition()
{
EdgePredefinition EdgePredef = new EdgePredefinition(this.EdgeName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,22 @@ public IndexPredefinition ToIndexPredefinition()
IndexPreDef.SetComment(this.Comment);
IndexPreDef.SetEdition(this.Edition);
IndexPreDef.SetIndexType(this.IndexType);
IndexPreDef.AddOptions(this.IndexOptions);
if (this.IndexOptions != null)
{
IndexPreDef.AddOptions(this.IndexOptions);
}

foreach (var Property in this.Properties)
if (this.Properties != null)
{
IndexPreDef.AddProperty(Property);
foreach (var Property in this.Properties)
{
IndexPreDef.AddProperty(Property);
}
}

IndexPreDef.SetVertexType(this.VertexTypeName);

return IndexPreDef;
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public class ServiceSingleEdgeUpdateDefinition : ServiceGraphElementUpdateDefini
{
[DataMember]
public ServiceVertexInformation SourceVertex;

[DataMember]
public ServiceVertexInformation TargetVertex;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,5 @@ public VertexTypePredefinition ToVertexTypePredefinition()
}
return VertexTypePreDef;
}


}
}

0 comments on commit 3edd59c

Please sign in to comment.