Erster Commit des bestehenden monolithischen WinForms-Copytraders, inklusive der Alt-Backups (*.bak), damit diese dauerhaft in der Historie rekonstruierbar bleiben. Threema-Lib unter libs/ wurde vendored (nested .git entfernt). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
15 lines
475 B
C#
15 lines
475 B
C#
using LiteDB;
|
|
using System.Linq;
|
|
|
|
using (var db = new LiteDatabase(@"j:\Softwareprojekte\PolytraderSharp\PolyTraderSharp\bin\Debug\net8.0-windows7.0\data.db"))
|
|
{
|
|
var accounts = db.GetCollection("accounts").FindAll().ToList();
|
|
foreach(var acc in accounts)
|
|
{
|
|
var id = acc["_id"].AsInt32;
|
|
var name = acc["Name"].AsString;
|
|
var active = acc["IsActive"].AsBoolean;
|
|
Console.WriteLine($"ID: {id}, Name: {name}, Active: {active}");
|
|
}
|
|
}
|