I have to map a class with more than one template in GlassMapper. My code is like below.
[SitecoreType(TemplateId = "{6173F07E-BC5B-4409-A75A-DF1B0D117C41}", AutoMap = true, EnforceTemplateGlass.Mapper.Sc.Configuration.SitecoreEnforceTemplate.Template)]
public class ResourceListings : MSEntity{
public virtual ID Id { get; set; }
[SitecoreField("Title")]
public virtual string Title { get; set; }
}
I tried to pass more than one Template Id using pipe like
[SitecoreType(TemplateId = "{6173F07E-BC5B-4409-A75A-DF1B0D117C41}|{3175F07E-BC5B-5409-A75A-CF1B0b117C41}"
,
in above attribute but it throws error. Is there a way to achieve the same.