@@ 59-64 (lines=6) @@ | ||
56 | $this->startEdmxTransaction(); |
|
57 | $NewEntity = new TEntityTypeType(); |
|
58 | $NewEntity->setName($name); |
|
59 | if (null != $summary || null != $longDescription) { |
|
60 | $documentation = new TDocumentationType(); |
|
61 | $documentation->setSummary($summary); |
|
62 | $documentation->setLongDescription($longDescription); |
|
63 | $NewEntity->setDocumentation($documentation); |
|
64 | } |
|
65 | ||
66 | $entitySet = new EntitySetAnonymousType(); |
|
67 | $entitySet->setName(Str::plural($NewEntity->getName(), 2)); |
|
@@ 92-97 (lines=6) @@ | ||
89 | $NewEntity = new TComplexTypeType(); |
|
90 | $NewEntity->setName($name); |
|
91 | $NewEntity->setTypeAccess($accessType); |
|
92 | if (null != $summary || null != $longDescription) { |
|
93 | $documentation = new TDocumentationType(); |
|
94 | $documentation->setSummary($summary); |
|
95 | $documentation->setLongDescription($longDescription); |
|
96 | $NewEntity->setDocumentation($documentation); |
|
97 | } |
|
98 | $this->V3Edmx->getDataServiceType()->getSchema()[0]->addToComplexType($NewEntity); |
|
99 | ||
100 | return $NewEntity; |
|
@@ 162-167 (lines=6) @@ | ||
159 | $NewProperty->setType($type); |
|
160 | $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern); |
|
161 | $NewProperty->setNullable($nullable); |
|
162 | if (null != $summary || null != $longDescription) { |
|
163 | $documentation = new TDocumentationType(); |
|
164 | $documentation->setSummary($summary); |
|
165 | $documentation->setLongDescription($longDescription); |
|
166 | $NewProperty->addToDocumentation($documentation); |
|
167 | } |
|
168 | if (null != $defaultValue) { |
|
169 | $NewProperty->setDefaultValue($defaultValue); |
|
170 | } |
|
@@ 193-198 (lines=6) @@ | ||
190 | $NewProperty->setType($type); |
|
191 | $NewProperty->setStoreGeneratedPattern($storeGeneratedPattern); |
|
192 | $NewProperty->setNullable($nullable); |
|
193 | if (null != $summary || null != $longDescription) { |
|
194 | $documentation = new TDocumentationType(); |
|
195 | $documentation->setSummary($summary); |
|
196 | $documentation->setLongDescription($longDescription); |
|
197 | $NewProperty->addToDocumentation($documentation); |
|
198 | } |
|
199 | if (null != $defaultValue) { |
|
200 | $NewProperty->setDefaultValue($defaultValue); |
|
201 | } |