Search code examples
c#sitecoresitecore7.2glass-mappertds

Sitecore, wrong type of inherited template field created by TDS


I have a problem with template inheritance:

I have base template (let say Parent) which contains the following field:

  • Theme (Droplist with query specified)

And template (Child) derived from it.

The issue is that once I inherited Parent, and generated model for it with TDS, I got:

public virtual string Theme {get; set;}

But expected to get Guid class. Once I swithced Theme field to type Multilist I got:

public virtual IEnumerable<Guid> Themes {get; set;}

Which has Guid type in it...

How can I tell to TDS(GlassMapper) to have Guid instead of string?


Solution

  • Ok, finally, I found my mistake while writing this question... I used wrong type for Theme:

    should use Droplink instead of Droplist.