Skip to content

Instantly share code, notes, and snippets.

@kgiszewski
Created September 8, 2014 14:41
Show Gist options
  • Save kgiszewski/9787d9384ec8af45a95a to your computer and use it in GitHub Desktop.
Save kgiszewski/9787d9384ec8af45a95a to your computer and use it in GitHub Desktop.
var myArchetype = new ArchetypeModel()
{
Fieldsets = new List<ArchetypeFieldsetModel>()
{
new ArchetypeFieldsetModel()
{
Alias = "fs1",
Properties = new List<ArchetypePropertyModel>()
{
new ArchetypePropertyModel()
{
Alias = "prop1",
Value = "foo",
},
new ArchetypePropertyModel()
{
Alias = "prop2",
Value = "bar",
}
}
},
new ArchetypeFieldsetModel()
{
Alias = "fs2",
Properties = new List<ArchetypePropertyModel>()
{
new ArchetypePropertyModel()
{
Alias = "prop1",
Value = "foo",
},
new ArchetypePropertyModel()
{
Alias = "prop2",
Value = "bar",
}
}
}
}
};
myArchetype.SerializeForPersistence();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment