|
@@ -31,7 +31,7 @@ discard block |
|
|
block discarded – undo |
|
31
|
31
|
{ |
|
32
|
32
|
$ds = DIRECTORY_SEPARATOR; |
|
33
|
33
|
|
|
34
|
|
- $goodxsd = dirname(__DIR__) . $ds . "xsd" . $ds . "Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd"; |
|
|
34
|
+ $goodxsd = dirname(__DIR__).$ds."xsd".$ds."Microsoft.Data.Entity.Design.Edmx_3.Fixed.xsd"; |
|
35
|
35
|
if (!file_exists($goodxsd)) { |
|
36
|
36
|
return true; |
|
37
|
37
|
} |
|
@@ -46,7 +46,7 @@ discard block |
|
|
block discarded – undo |
|
46
|
46
|
$result = null; |
|
47
|
47
|
|
|
48
|
48
|
list($eType, $result) = $metadataManager->addEntityType("Category"); |
|
49
|
|
- $this->assertNotFalse($eType, "Etype is false not type " . $metadataManager->getLastError()); |
|
|
49
|
+ $this->assertNotFalse($eType, "Etype is false not type ".$metadataManager->getLastError()); |
|
50
|
50
|
$metadataManager->addPropertyToEntityType($eType, "CategoryID", "Int32", null, false, true, "Identity"); |
|
51
|
51
|
$metadataManager->addPropertyToEntityType($eType, "CategoryName", "String"); |
|
52
|
52
|
$metadataManager->addPropertyToEntityType($eType, "Description", "String"); |
|
@@ -73,7 +73,7 @@ discard block |
|
|
block discarded – undo |
|
73
|
73
|
$result = null; |
|
74
|
74
|
|
|
75
|
75
|
list($CategoryType, $result) = $metadataManager->addEntityType("Category"); |
|
76
|
|
- $this->assertNotFalse($CategoryType, "Etype is false not type " . $metadataManager->getLastError()); |
|
|
76
|
+ $this->assertNotFalse($CategoryType, "Etype is false not type ".$metadataManager->getLastError()); |
|
77
|
77
|
$metadataManager->addPropertyToEntityType($CategoryType, "CategoryID", "Int32", null, false, true, "Identity"); |
|
78
|
78
|
$metadataManager->addPropertyToEntityType($CategoryType, "CategoryName", "String"); |
|
79
|
79
|
$metadataManager->addPropertyToEntityType($CategoryType, "Description", "String"); |