View Source
Class DefinitionFactory
Inheritance
System.Object
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
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
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
View Source
GetTableDefinition(Type, ISqlSyntaxProvider)
Declaration
public static TableDefinition GetTableDefinition(Type modelType, ISqlSyntaxProvider sqlSyntax)
Parameters
Returns