Skip to content

Instantly share code, notes, and snippets.

@lukasz-pyrzyk
Created April 13, 2018 12:43
Show Gist options
  • Save lukasz-pyrzyk/f0bc822fd10670534500dcd7906c10af to your computer and use it in GitHub Desktop.
Save lukasz-pyrzyk/f0bc822fd10670534500dcd7906c10af to your computer and use it in GitHub Desktop.
[Fact]
public void EntityWithArrayCanBeFlattened()
{
var root = new Parent
{
Childrens = new[] { new Children { Name = "Łukasz" } }
};
var flattened = TableEntity.Flatten(root, new OperationContext());
}
public class Parent
{
public Children[] Childrens { get; set; }
}
public class Children
{
public string Name { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment