Пример #1
0
        public void SingleById_with_aliases_retrieves_rowversion()
        {
            db.DropAndCreateTable <ModelWithAliasedRowVersion>();

            var row = new ModelWithAliasedRowVersion {
                Text = "TheOne"
            };

            db.Save(row);

            var actualRow = db.SingleById <ModelWithAliasedRowVersion>(row.Id);

            Assert.That(actualRow.Version, Is.EqualTo(row.Version));
        }
        public void SingleById_with_aliases_retrieves_rowversion()
        {
            db.DropAndCreateTable<ModelWithAliasedRowVersion>();

            var row = new ModelWithAliasedRowVersion { Text = "TheOne" };
            db.Save(row);

            var actualRow = db.SingleById<ModelWithAliasedRowVersion>(row.Id);

            Assert.That(actualRow.Version, Is.EqualTo(row.Version));
        }