public void Write(Table table, string parentId = "")
		{
			writer.WriteStartObject();
			writer.WritePropertyName(table.TableName);
			writer.WriteStartArray();
			for (int i = 0; i<table.Rows.Count; i++)
			{
				var dic = table.Rows[i].AsDictionary();
				serializer.Serialize(writer, dic);
			}
			writer.WriteEndArray();
			writer.WriteEndObject();
		}
Ejemplo n.º 2
0
		public Row(Table table, List<object> field)
		{
			this.field = field;
			this.table = table;
		}
Ejemplo n.º 3
0
		public void AddChild(Table child)
		{
			if (childTables == null)
				childTables = new List<Table>();

			childTables.Add(child);
		}