forked from sones/sones
/
ServiceAlterVertexChangeset.cs
45 lines (44 loc) · 3.28 KB
/
ServiceAlterVertexChangeset.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using sones.GraphDB.Request;
namespace sones.GraphDS.GraphDSRemoteClient.sonesGraphDSRemoteAPI
{
public partial class ServiceAlterVertexChangeset
{
internal ServiceAlterVertexChangeset(RequestAlterVertexType myRequestAlterVertexType)
{
this.NewTypeName = myRequestAlterVertexType.AlteredTypeName;
this.Comment = myRequestAlterVertexType.AlteredComment;
this.ToBeAddedProperties = (myRequestAlterVertexType.ToBeAddedProperties == null)
? null : myRequestAlterVertexType.ToBeAddedProperties.Select(x => new ServicePropertyPredefinition(x)).ToList();
this.ToBeAddedIncomingEdges = (myRequestAlterVertexType.ToBeAddedIncomingEdges == null)
? null : myRequestAlterVertexType.ToBeAddedIncomingEdges.Select(x => new ServiceIncomingEdgePredefinition(x)).ToList();
this.ToBeAddedOutgoingEdges = (myRequestAlterVertexType.ToBeAddedOutgoingEdges == null)
? null : myRequestAlterVertexType.ToBeAddedOutgoingEdges.Select(x => new ServiceOutgoingEdgePredefinition(x)).ToList();
this.ToBeAddedIndices = (myRequestAlterVertexType.ToBeAddedIndices == null)
? null : myRequestAlterVertexType.ToBeAddedIndices.Select(x => new ServiceIndexPredefinition(x)).ToList();
this.ToBeAddedUniques = (myRequestAlterVertexType.ToBeAddedUniques == null)
? null : myRequestAlterVertexType.ToBeAddedUniques.Select(x => new ServiceUniquePredefinition(x)).ToList();
this.ToBeAddedMandatories = (myRequestAlterVertexType.ToBeAddedMandatories == null)
? null : myRequestAlterVertexType.ToBeAddedMandatories.Select(x => new ServiceMandatoryPredefinition(x)).ToList();
this.ToBeRemovedProperties = (myRequestAlterVertexType.ToBeRemovedProperties == null)
? null : myRequestAlterVertexType.ToBeRemovedProperties.ToList();
this.ToBeRemovedIncomingEdges = (myRequestAlterVertexType.ToBeRemovedIncomingEdges == null)
? null : myRequestAlterVertexType.ToBeRemovedIncomingEdges.ToList();
this.ToBeRemovedOutgoingEdges = (myRequestAlterVertexType.ToBeRemovedOutgoingEdges == null)
? null : myRequestAlterVertexType.ToBeRemovedOutgoingEdges.ToList();
this.ToBeRemovedIndices = myRequestAlterVertexType.ToBeRemovedIndices;
this.ToBeRemovedUniques = (myRequestAlterVertexType.ToBeRemovedUniques == null)
? null : myRequestAlterVertexType.ToBeRemovedUniques.ToList();
this.ToBeRemovedMandatories = (myRequestAlterVertexType.ToBeRemovedMandatories == null)
? null : myRequestAlterVertexType.ToBeRemovedMandatories.ToList();
this.ToBeRenamedProperties = myRequestAlterVertexType.ToBeRenamedProperties;
this.ToBeDefinedAttributes = (myRequestAlterVertexType.ToBeDefinedAttributes == null)
? null : myRequestAlterVertexType.ToBeDefinedAttributes.Select(x => new ServiceUnknownAttributePredefinition(x)).ToList();
this.ToBeUndefinedAttributes = (myRequestAlterVertexType.ToBeUndefinedAttributes == null)
? null : myRequestAlterVertexType.ToBeUndefinedAttributes.ToList();
}
}
}