Files
Umbraco-CMS/src/Umbraco.Core/Models/Rdbms/TaskDto.cs
T
Shannon 7beb21ad66 Fixes upgrade issues with MySql, along with a few other things:
* All usages of getdate() are changed to the system value
* All usages of newid() are chagned to the system value
* Removes the hacks associated with the above
* Fixes the fluent migrations for table creation for mysql to not double create a PK
* Removes other system field values that actually don't do anthing and shouldn't be used
2015-09-11 17:49:47 +02:00

49 lines
1.4 KiB
C#

using System;
using Umbraco.Core.Persistence;
using Umbraco.Core.Persistence.DatabaseAnnotations;
using Umbraco.Core.Persistence.DatabaseModelDefinitions;
namespace Umbraco.Core.Models.Rdbms
{
[TableName("cmsTask")]
[PrimaryKey("id")]
[ExplicitColumns]
internal class TaskDto
{
[Column("closed")]
[Constraint(Default = "0")]
public bool Closed { get; set; }
[Column("id")]
[PrimaryKeyColumn]
public int Id { get; set; }
[Column("taskTypeId")]
[ForeignKey(typeof(TaskTypeDto))]
public byte TaskTypeId { get; set; }
[Column("nodeId")]
[ForeignKey(typeof(NodeDto))]
public int NodeId { get; set; }
[Column("parentUserId")]
[ForeignKey(typeof(UserDto), Name = "FK_cmsTask_umbracoUser")]
public int ParentUserId { get; set; }
[Column("userId")]
[ForeignKey(typeof(UserDto), Name = "FK_cmsTask_umbracoUser1")]
public int UserId { get; set; }
[Column("DateTime")]
[Constraint(Default = SystemMethods.CurrentDateTime)]
public DateTime DateTime { get; set; }
[Column("Comment")]
[NullSetting(NullSetting = NullSettings.Null)]
[Length(500)]
public string Comment { get; set; }
[ResultColumn]
public TaskTypeDto TaskTypeDto { get; set; }
}
}