C# - how to delete row in realm - android xamarin
问题 i tried this method that I created but it prompts me an error: Realms.RealmInvalidObjectException:This object is detached. Was it deleted from the realm?' public void deleteFromDatabase(List<CashDenomination> denom_list) { using (var transaction = Realm.GetInstance(config).BeginWrite()) { Realm.GetInstance(config).Remove(denom_list[0]); transaction.Commit(); } } what is the proper coding for deleting records from database in realm in C# type of coding? 回答1: You are doing it the right way. The