Inheritance: Dogen.TestModels.CSharpModel.Package2.Parent
Exemplo n.º 1
0
        public static string Dump(ChildViaSettings value)
        {
            var assistant = new AssistantDumper();

            Dump(assistant, value);
            return(assistant.ToString());
        }
Exemplo n.º 2
0
        static internal void Dump(AssistantDumper assistant, ChildViaSettings value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
            {
                return;
            }

            assistant.AddStartObject();
            assistant.AddType("Dogen.TestModels.CSharpModel.Package2.ChildViaSettings", true /*withSeparator*/);
            if (value == null)
            {
                assistant.Add("data", "<null>");
                assistant.AddEndObject();
                return;
            }

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.AddKey("__parent_0__");
            assistant.AddPairSeparator();
            Dogen.TestModels.CSharpModel.Package2.ParentDumper.Dump(assistant, value, true /*withSeparator*/);
            assistant.Add("Prop1", value.Prop1);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
        static internal ChildViaSettings Create(uint position)
        {
            var result = new ChildViaSettings();

            Populate(result, position);
            return(result);
        }
        internal static void Dump(AssistantDumper assistant, ChildViaSettings value, bool withSeparator = false)
        {
            assistant.IncrementDepth();
            if (assistant.MaximumDepthExceeded())
                return;

            assistant.AddStartObject();
            assistant.AddType("Dogen.TestModels.CSharpModel.Package2.ChildViaSettings", true/*withSeparator*/);
            if (value == null)
            {
                assistant.Add("data", "<null>");
                assistant.AddEndObject();
                return;
            }

            assistant.AddKey("data");
            assistant.AddPairSeparator();
            assistant.AddStartObject();
            assistant.AddKey("__parent_0__");
            assistant.AddPairSeparator();
            Dogen.TestModels.CSharpModel.Package2.ParentDumper.Dump(assistant, value, true/*withSeparator*/);
            assistant.Add("prop_1", value.prop_1);
            assistant.AddEndObject(); // data
            assistant.AddEndObject(); // main object
            assistant.HandleMemberSeparator(withSeparator);

            assistant.DecrementDepth();
        }
 static internal void Populate(ChildViaSettings value, uint position)
 {
     Dogen.TestModels.CSharpModel.Package2.ParentSequenceGenerator.Populate(value, position);
     value.Prop1 = AssistantSequenceGenerator.CreateInt(position + 0);
 }
 public static string Dump(ChildViaSettings value)
 {
     var assistant = new AssistantDumper();
     Dump(assistant, value);
     return assistant.ToString();
 }