public static void WriteHeader(StreamWriter writer, SortedList<string, RelationalField> schema) { var columns = new string[] { "_Id_", "_ParentId_", "_At_" } .Concat(schema.Keys); var types = new DbType[] { DbType.Key, DbType.Key, DbType.DateTime } .Concat(schema.Values.Select(x => x.Type)); writer.WriteLine(string.Join("\t", columns)); writer.WriteLine(string.Join("\t", types.Select(x => x.ToString()))); }
public static void WriteHeader(StreamWriter writer, SortedList <string, RelationalField> schema) { var columns = new string[] { "_Id_", "_ParentId_", "_At_" } .Concat(schema.Keys); var types = new DbType[] { DbType.Key, DbType.Key, DbType.DateTime } .Concat(schema.Values.Select(x => x.Type)); writer.WriteLine(string.Join("\t", columns)); writer.WriteLine(string.Join("\t", types.Select(x => x.ToString()))); }