Beispiel #1
0
        public void NullConverterRaisesException()
        {
            // --- Arrange
            var db = new SqlDatabase(DB_CONN);

            db.Execute(@"create table sample(Id int not null, Name varchar(50) null)");
            var record = new SampleRecordWithNullConverter {
                Id = 1, Name = new List <string> {
                    "1", "2", "3", "4"
                }
            };

            // --- Act
            db.Insert(record);
        }
Beispiel #2
0
        public void NullConverterRaisesException()
        {
            // --- Arrange
            var db = new FbDatabase(DB_CONN);

            db.BeginTransaction();
            db.Execute(@"create table ""sample"" (""Id"" int not null, ""Name"" varchar(50))");
            db.CompleteTransaction();
            var record = new SampleRecordWithNullConverter {
                Id = 1, Name = new List <string> {
                    "1", "2", "3", "4"
                }
            };

            // --- Act
            db.Insert(record);
        }