Beispiel #1
0
        public void AllowNullInsert()
        {
            var db = ConnectTo.Sql2005(Config.TestDBConnectionString);

            var org = new Organization();
            org.Name = "My Organization";

            var key = db.Insert("Organization", org._AsDictionary());

            //Verify that only 1 row exists with the key of this inserted organization
            Assert.AreEqual(1, db.RawRead("Organization", key).Count());
        }