Removing attributes for migrations as a library that does this already exists.

Updating a few DTOs for programmatic creation.
This commit is contained in:
Morten@Thinkpad-X220.ab-nat1.dk
2012-10-17 10:12:30 -02:00
parent 2523781fc1
commit 5bd2059cd7
28 changed files with 112 additions and 286 deletions

View File

@@ -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; }
}
}