Skip to content

Instantly share code, notes, and snippets.

@robert-skarzycki
Created February 15, 2019 14:49
Show Gist options
  • Save robert-skarzycki/c0c26f32e0000c17faabc6c5debde55c to your computer and use it in GitHub Desktop.
Save robert-skarzycki/c0c26f32e0000c17faabc6c5debde55c to your computer and use it in GitHub Desktop.
Classes for reproduction problems I faced with Marten
using System;
using System.Collections.Generic;
using Marten.Schema;
namespace marten_playground
{
public class Root
{
public Guid Id { get; set; }
public string Name { get; set; }
public ICollection<ChildLevel1> ChildsLevel1 { get; set; }
}
public class ChildLevel1
{
public Guid Id { get; set; }
public string Name { get; set; }
public ICollection<ChildLevel2> ChildsLevel2 { get; set; }
}
public class ChildLevel2
{
public Guid Id { get; set; }
public string Name { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment