U4-2028 - Umbraco 6.0.3 - ContentTypeService API - Lists Property Create Date as 00

Created by Warren Buckley (Personal) 01 Apr 2013, 20:32:32 Updated by Morten Christensen 20 Apr 2013, 14:23:22

Hiya Guys, I am playing around with Morten's simple Umbraco 6 console app, to experiment and learn the new service APIs

When listing out all the document types and their properties I noticed the create date for the proeprties are being listed as following: 01/01/0001 00:00:00 rather than the create date of the property on the document/content type.

Cheers, Warren :)

var allDocTypes = contentTypeService.GetAllContentTypes(); Console.WriteLine("Number of DocTypes: " + allDocTypes.Count());

//Loop over all doctypes foreach (var doctype in allDocTypes) { Console.WriteLine("Doctype: " + doctype.Name);

//For each doctype - get all their properties on the doctype
foreach (var property in doctype.PropertyTypes)
{
    Console.WriteLine("Name: " + property.Name);
    Console.WriteLine("Alias: " + property.Alias);
    Console.WriteLine("Create Date: " + property.CreateDate);
    Console.WriteLine("Data Definition Type ID: " + property.DataTypeDefinitionId);
    Console.WriteLine("Data Type ID: " + property.DataTypeId);
    Console.WriteLine("Description: " + property.Description);
    Console.WriteLine("Help Text: " + property.HelpText);
    Console.WriteLine("Is Dirty?: " + property.IsDirty());
    Console.WriteLine("Mandatory?: " + property.Mandatory);
    Console.WriteLine("Sort Order: " + property.SortOrder);
    Console.WriteLine("Update Date: " + property.UpdateDate);
    Console.WriteLine("**************************************");
}

}

Comments

Priority: Normal

Type: Bug

State: Fixed

Assignee: Morten Christensen

Difficulty: Normal

Category: Architecture

Backwards Compatible: True

Fix Submitted:

Affected versions: 6.0.3

Due in version: 6.0.4

Sprint:

Story Points:

Cycle: