|
@@ 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; |
|
@@ 163-168 (lines=6) @@
|
| 160 |
|
$NewProperty->setType($type); |
| 161 |
|
$NewProperty->setStoreGeneratedPattern($storeGeneratedPattern); |
| 162 |
|
$NewProperty->setNullable($nullable); |
| 163 |
|
if (null != $summary || null != $longDescription) { |
| 164 |
|
$documentation = new TDocumentationType(); |
| 165 |
|
$documentation->setSummary($summary); |
| 166 |
|
$documentation->setLongDescription($longDescription); |
| 167 |
|
$NewProperty->addToDocumentation($documentation); |
| 168 |
|
} |
| 169 |
|
if (null != $defaultValue) { |
| 170 |
|
$NewProperty->setDefaultValue($defaultValue); |
| 171 |
|
} |
|
@@ 194-199 (lines=6) @@
|
| 191 |
|
$NewProperty->setType($type); |
| 192 |
|
$NewProperty->setStoreGeneratedPattern($storeGeneratedPattern); |
| 193 |
|
$NewProperty->setNullable($nullable); |
| 194 |
|
if (null != $summary || null != $longDescription) { |
| 195 |
|
$documentation = new TDocumentationType(); |
| 196 |
|
$documentation->setSummary($summary); |
| 197 |
|
$documentation->setLongDescription($longDescription); |
| 198 |
|
$NewProperty->addToDocumentation($documentation); |
| 199 |
|
} |
| 200 |
|
if (null != $defaultValue) { |
| 201 |
|
$NewProperty->setDefaultValue($defaultValue); |
| 202 |
|
} |