Skip to content

Instantly share code, notes, and snippets.

@islaytitans
Created December 3, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save islaytitans/6568581f12cc5ff2f9d5 to your computer and use it in GitHub Desktop.
Save islaytitans/6568581f12cc5ff2f9d5 to your computer and use it in GitHub Desktop.
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