String() публичный Метод

public String ( $Name, $Length, $PrimaryKey = false ) : Column
Результат 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->Id = $Column->IncrementInt32('Id');
     $this->Name = $Column->String('Name', 50);
     $this->Description = $Column->String('Description', 255);
     $this->Number = $Column->Int32('Number');
 }
Пример #3
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');
 }
Пример #4
0
 protected function RegisterColumnStructure(Registrar $Registrar, Columns\IColumnSet $Column)
 {
     $this->SequenceNameColumn = $Column->String('Sequence', 64, true);
     $this->IncrementColumn = $Column->IncrementInt64('Increment', true);
     $Registrar->Register($this->SequenceNameColumn);
     $Registrar->Register($this->IncrementColumn);
 }
Пример #5
0
 protected function CreateTableStructure(IColumnSet $Column)
 {
     $this->PostBlogId = $Column->Int32('PostBlogId', true);
     $this->PostTitle = $Column->String('PostTitle', 50, true);
     $this->TagId = $Column->Int32('TagId', true);
 }
Пример #6
0
 protected function CreateTableStructure(IColumnSet $Column)
 {
     $this->Id = $Column->IncrementInt32('Id');
     $this->FirstName = $Column->String('FirstName', 50);
     $this->LastName = $Column->String('LastName', 50);
 }