View Source
  Interface ICreateBuilder
  
  Builds a Create expression.
 
  
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public interface ICreateBuilder : IFluentBuilder
   
  Methods
  
  
    View Source
  
  Column(String)
  Builds a Create Column expression.
 
  
  Declaration
  
    ICreateColumnOnTableBuilder Column(string columnName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        columnName | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  Constraint(String)
  Builds a Create Constraint expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder Constraint(string constraintName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        constraintName | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  ForeignKey()
  Builds a Create Foreign Key expression.
 
  
  Declaration
  
    ICreateForeignKeyFromTableBuilder ForeignKey()
   
  Returns
  
  
    View Source
  
  ForeignKey(String)
  Builds a Create Foreign Key expression.
 
  
  Declaration
  
    ICreateForeignKeyFromTableBuilder ForeignKey(string foreignKeyName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        foreignKeyName | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  Index()
  Builds a Create Index expression.
 
  
  Declaration
  
    ICreateIndexForTableBuilder Index()
   
  Returns
  
  
    View Source
  
  Index(String)
  Builds a Create Index expression.
 
  
  Declaration
  
    ICreateIndexForTableBuilder Index(string indexName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        indexName | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  KeysAndIndexes(Type)
  Builds a Create Keys and Indexes expression, and executes.
 
  
  Declaration
  
    IExecutableBuilder KeysAndIndexes(Type typeOfDto)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | Type | 
        typeOfDto | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  KeysAndIndexes<TDto>()
  Builds a Create Keys and Indexes expression, and executes.
 
  
  Declaration
  
    IExecutableBuilder KeysAndIndexes<TDto>()
   
  Returns
  
  Type Parameters
  
  
    View Source
  
  PrimaryKey()
  Builds a Create Primary Key expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder PrimaryKey()
   
  Returns
  
  
    View Source
  
  PrimaryKey(Boolean)
  Builds a Create Primary Key expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder PrimaryKey(bool clustered)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        clustered | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  PrimaryKey(String)
  Builds a Create Primary Key expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder PrimaryKey(string primaryKeyName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        primaryKeyName | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  PrimaryKey(String, Boolean)
  Builds a Create Primary Key expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder PrimaryKey(string primaryKeyName, bool clustered)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        primaryKeyName | 
         | 
      
      
        | System.Boolean | 
        clustered | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  Table(String)
  Builds a Create Table expression.
 
  
  Declaration
  
    ICreateTableWithColumnBuilder Table(string tableName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        tableName | 
         | 
      
    
  
  Returns
  
  
    View Source
  
  Table<TDto>(Boolean)
  Builds a Create Table expression, and executes.
 
  
  Declaration
  
    IExecutableBuilder Table<TDto>(bool withoutKeysAndIndexes = false)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        withoutKeysAndIndexes | 
         | 
      
    
  
  Returns
  
  Type Parameters
  
  
    View Source
  
  UniqueConstraint()
  Builds a Create Unique Constraint expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder UniqueConstraint()
   
  Returns
  
  
    View Source
  
  UniqueConstraint(String)
  Builds a Create Unique Constraint expression.
 
  
  Declaration
  
    ICreateConstraintOnTableBuilder UniqueConstraint(string constraintName)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        constraintName | 
         | 
      
    
  
  Returns