コード例 #1
0
        public void will_render_sql_with_types_and_nullability()
        {
            var table = _model.FindTable("[Person]");

            // build sql sample...
            _sqlWriter.WriteCreate(_sqlSW, table.Columns[0]);
            _sqlSW.WriteLine(",");
            _sqlWriter.WriteCreate(_sqlSW, table.Columns[2]);

            Assert.That(_sqlSW.ToString(), Is.EqualTo("ID int not null,\r\nName nvarchar(100) not null"));
        }