-
-
Save islaytitans/6568581f12cc5ff2f9d5 to your computer and use it in GitHub Desktop.
Sample Ordered Sitecore xDB Element example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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