public async Task TEntityProcess_S0001_Async() { // DB準備 GenericSQLiteManager sqliteManager = new GenericSQLiteManager(true); // ログ出力するため true await sqliteManager.CreateDbFileAndConnectionAsync("SQLite_EntityProcessTest", "TestDb_S0001.db3"); await sqliteManager.AddTableAsync(new List <Type>() { typeof(PersonEntity), typeof(TodoEntity), typeof(UserEntity) }); // テスト開始 await sqliteManager.InsertOrUpdateEntityAsync <PersonEntity>(new PersonEntity() { Name = "Taro", Age = 20 }); await sqliteManager.InsertOrUpdateEntityAsync <TodoEntity>(new TodoEntity() { Detail = "TestTodo1", CreateDate = DateTime.Now }); await sqliteManager.InsertOrUpdateEntityAsync <UserEntity>(new UserEntity() { UserID = "FairyZeta1", Pass = "******", Mail = @"*****@*****.**" }); // テスト結果出力 base.OutputLogs(sqliteManager); }
protected virtual void OutputLogs(GenericSQLiteManager pGenericSQLiteManager) { foreach (var item in pGenericSQLiteManager.GetLogs()) { Debug.WriteLine(item.GetLogFormat()); } }