![]() ![]() One imporant note is that the constructor in the example above is not supported in. Var result = await db.PageAsync(1, 20, // 0") Īwait db.DeleteAsync("WHERE article_id = 123) Īwait db.UpdateAsync("SET title = WHERE article_id = "New Title", 123) Var a = await db.SingleOrDefaultAsync("SELECT * FROM articles WHERE article_id = 123) ![]() Var count = await db.ExecuteScalarAsync("SELECT Count(*) FROM articles") var db = new AsyncPoco.Database("connectionStringName") async/ await), the transition to AsyncPoco should be quite intuitive. If you're familiar with PetaPoco and the TAP pattern (i.e. NET, with a fully asynchronous API and broad cross-platform support, including. 2.0 is here! For details and help transitioning from 1.x, check out the upgrade guide.ĪsyncPoco is a fork of the popular PetaPoco micro-ORM for. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |