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); }
protected function EntityMap(Object\Domain $Domain) { return $Domain->GetEntityMap(Post::GetType()); }
protected function EntityType() { return Post::GetType(); }