Files
Umbraco-CMS/src/Umbraco.Core/Persistence/SqlSyntax/ColumnInfo.cs
Morten Christensen 7aabf459ea Adding schema validation to the DatabaseSchemaCreation class.
Helps determine if valid database exists and which version it corresponds to.
On startup the legacy connectionstring is used if one exists, so its not ignore but rather reconfigured.
Relates to U4-1520.
2013-01-25 15:05:42 -01:00

31 lines
1.1 KiB
C#

namespace Umbraco.Core.Persistence.SqlSyntax
{
public class ColumnInfo
{
public ColumnInfo(string tableName, string columnName, int ordinal, string columnDefault, string isNullable, string dataType)
{
TableName = tableName;
ColumnName = columnName;
Ordinal = ordinal;
ColumnDefault = columnDefault;
IsNullable = isNullable.Equals("YES");
DataType = dataType;
}
public ColumnInfo(string tableName, string columnName, int ordinal, string isNullable, string dataType)
{
TableName = tableName;
ColumnName = columnName;
Ordinal = ordinal;
IsNullable = isNullable.Equals("YES");
DataType = dataType;
}
public string TableName { get; set; }
public string ColumnName { get; set; }
public int Ordinal { get; set; }
public string ColumnDefault { get; set; }
public bool IsNullable { get; set; }
public string DataType { get; set; }
}
}