Inheritance: extends Entity
Esempio n. 1
0
 protected function CreateProperties(Domain $Domain)
 {
     $this->Id = new Properties\DataProperty(new Accessors\Field('Id'), true);
     $this->Name = new Properties\DataProperty(new Accessors\MethodPair('GetName', 'SetName'));
     $this->Description = new Properties\DataProperty(new Accessors\Field('Description'));
     $this->CreatedDate = new Properties\DataProperty(new Accessors\Field('CreatedDate'));
     $this->Posts = new Properties\CollectionProperty(new Accessors\Field('Posts'), \StormExamples\One\Entities\Post::GetType(), new Properties\Relationships\Identifying(), $Domain->PostMap->Blog);
 }
Esempio n. 2
0
 protected function EntityMap(Object\Domain $Domain)
 {
     return $Domain->GetEntityMap(Post::GetType());
 }
Esempio n. 3
0
 protected function EntityType()
 {
     return Post::GetType();
 }