Sample Ordered Sitecore xDB Element example
[Serializable] | |
public class SampleOrderElement : Element, ISampleOrderElement | |
{ | |
private const string DecorIdName = "DecorId"; | |
private const string RangeIdName = "RangeId"; | |
public SampleOrderElement() | |
{ | |
EnsureAttribute<string>(DecorIdName); | |
EnsureAttribute<string>(RangeIdName); | |
} | |
public string DecorId | |
{ | |
get { return GetAttribute<string>(DecorIdName); } | |
set { SetAttribute(DecorIdName, value); } | |
} | |
public string RangeId | |
{ | |
get { return GetAttribute<string>(RangeIdName); } | |
set { SetAttribute(RangeIdName, value); } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment