DateTime() public method

public DateTime ( $Name, $PrimaryKey = false ) : Column
return Column
示例#1
0
 protected function CreateTableStructure(IColumnSet $Column)
 {
     $this->Id = $Column->IncrementInt32('Id');
     $this->Name = $Column->String('Name', 50);
     $this->Description = $Column->String('Description', 200);
     $this->CreatedDate = $Column->DateTime('CreatedDate');
 }
示例#2
0
 protected function CreateTableStructure(IColumnSet $Column)
 {
     $this->BlogId = $Column->IncrementInt32('BlogId');
     $this->AuthorId = $Column->Int32('AuthorId');
     $this->Title = $Column->String('Title', 50, true);
     $this->Content = $Column->String('Content', 2000);
     $this->CreatedDate = $Column->DateTime('CreatedDate');
 }