public void ShowSchema(Schema s) { W.WriteLineMsg($"Show Schema|"); W.WriteMsg("\n"); W.WriteLineAligned("name| ", $"{s.SchemaName}"); W.WriteLineAligned("desc| ", $"{s.Documentation}"); W.WriteLineAligned("vendId| ", $"{s.VendorId}"); W.WriteLineAligned("Guid| ", $"{s.GUID}"); foreach (Field f in s.ListFields()) { W.WriteLineAligned("field| ", $"name| {f.FieldName} type| {f.ValueType.Name}" + $" desc| {f.Documentation}"); } W.WriteMsg("\n"); W.ShowMsg(); ; }
public void GetDataStorage() { DataStorage ds; string result = dsMgr.FindDataStorage(out ds); if (result != null) { W.WriteLineAligned($"DataStorages found|\n", result); } else { W.WriteLineAligned($"DataStorages not found|", result); } IList <Schema> schemas = GetSchemas(); W.WriteAligned("\n"); W.WriteAligned($"List of schema|"); if (schemas != null) { W.WriteLineMsg($"found| {schemas.Count}"); foreach (Schema s in schemas) { W.WriteLineAligned($"schema|", $"name| {s.SchemaName.PadRight(35)} vendor id| {s.VendorId.PadRight(20)} guid| {s.GUID.ToString()}"); } } else { W.WriteLineAligned($"none found"); } W.ShowMsg(); }