Search Results for

    Show / Hide Table of Contents
    View Source

    Class DefinitionFactory

    Inheritance
    System.Object
    Namespace: Umbraco.Cms.Infrastructure.Persistence.DatabaseModelDefinitions
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public static class DefinitionFactory

    Methods

    View Source

    GetColumnDefinition(Type, PropertyInfo, String, String, ISqlSyntaxProvider)

    Declaration
    public static ColumnDefinition GetColumnDefinition(Type modelType, PropertyInfo propertyInfo, string columnName, string tableName, ISqlSyntaxProvider sqlSyntax)
    Parameters
    Type Name Description
    Type modelType
    System.Reflection.PropertyInfo propertyInfo
    System.String columnName
    System.String tableName
    ISqlSyntaxProvider sqlSyntax
    Returns
    Type Description
    ColumnDefinition
    View Source

    GetForeignKeyDefinition(Type, PropertyInfo, ForeignKeyAttribute, String, String)

    Declaration
    public static ForeignKeyDefinition GetForeignKeyDefinition(Type modelType, PropertyInfo propertyInfo, ForeignKeyAttribute attribute, string columnName, string tableName)
    Parameters
    Type Name Description
    Type modelType
    System.Reflection.PropertyInfo propertyInfo
    ForeignKeyAttribute attribute
    System.String columnName
    System.String tableName
    Returns
    Type Description
    ForeignKeyDefinition
    View Source

    GetIndexDefinition(Type, PropertyInfo, IndexAttribute, String, String)

    Declaration
    public static IndexDefinition GetIndexDefinition(Type modelType, PropertyInfo propertyInfo, IndexAttribute attribute, string columnName, string tableName)
    Parameters
    Type Name Description
    Type modelType
    System.Reflection.PropertyInfo propertyInfo
    IndexAttribute attribute
    System.String columnName
    System.String tableName
    Returns
    Type Description
    IndexDefinition
    View Source

    GetTableDefinition(Type, ISqlSyntaxProvider)

    Declaration
    public static TableDefinition GetTableDefinition(Type modelType, ISqlSyntaxProvider sqlSyntax)
    Parameters
    Type Name Description
    Type modelType
    ISqlSyntaxProvider sqlSyntax
    Returns
    Type Description
    TableDefinition
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • GetColumnDefinition(Type, PropertyInfo, String, String, ISqlSyntaxProvider)
      • GetForeignKeyDefinition(Type, PropertyInfo, ForeignKeyAttribute, String, String)
      • GetIndexDefinition(Type, PropertyInfo, IndexAttribute, String, String)
      • GetTableDefinition(Type, ISqlSyntaxProvider)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX