public async Task Can_SELECT_SingleAsyncForStrangeClass()
        {
            using (var db = OpenDbConnection())
            {
                db.DropAndCreateTable<PocoWithBytes>();

                var bar = new PocoWithBytes { Id = Guid.NewGuid(), Image = new byte[1024 * 1024], ContentType = "image/jpeg" };
                await db.InsertAsync(bar);

                var blah = await db.SingleAsync(db.From<PocoWithBytes>().Where(x => x.Id == bar.Id));
                Assert.That(blah, Is.Not.Null);
            }
        }
Exemple #2
0
        public async Task Can_SELECT_SingleAsyncForStrangeClass()
        {
            using (var db = OpenDbConnection())
            {
                db.DropAndCreateTable <PocoWithBytes>();

                var bar = new PocoWithBytes {
                    Id = Guid.NewGuid(), Image = new byte[1024 * 10], ContentType = "image/jpeg"
                };
                await db.InsertAsync(bar);

                var blah = await db.SingleAsync(db.From <PocoWithBytes>().Where(x => x.Id == bar.Id));

                Assert.That(blah, Is.Not.Null);
            }
        }