Removing attributes for migrations as a library that does this already exists.
Updating a few DTOs for programmatic creation.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Umbraco.Core.Persistence;
|
||||
using Umbraco.Core.Persistence.DatabaseAnnotations;
|
||||
|
||||
namespace Umbraco.Core.Models.Rdbms
|
||||
{
|
||||
@@ -8,15 +9,18 @@ namespace Umbraco.Core.Models.Rdbms
|
||||
internal class AppTreeDto
|
||||
{
|
||||
[Column("treeSilent")]
|
||||
[Constraint(Default = "0")]
|
||||
public bool Silent { get; set; }
|
||||
|
||||
[Column("treeInitialize")]
|
||||
[Constraint(Default = "1")]
|
||||
public bool Initialize { get; set; }
|
||||
|
||||
[Column("treeSortOrder")]
|
||||
public byte SortOrder { get; set; }
|
||||
|
||||
[Column("appAlias")]
|
||||
[PrimaryKeyColumn(AutoIncrement = false, Clustered = true, Name = "PK_umbracoAppTree", OnColumns = "[appAlias], [treeAlias]")]
|
||||
public string AppAlias { get; set; }
|
||||
|
||||
[Column("treeAlias")]
|
||||
@@ -38,6 +42,7 @@ namespace Umbraco.Core.Models.Rdbms
|
||||
public string HandlerType { get; set; }
|
||||
|
||||
[Column("action")]
|
||||
[NullSetting(NullSetting = NullSettings.Null)]
|
||||
public string Action { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user