解决MySql布尔型新旧版本兼容问题,采用枚举来表示布尔型的数据表。由正向工程赋值
大石头 authored at 2018-05-15 21:21:05
405.00 B
X
using NewLife.Log;
using XCode.Configuration;
using Xunit;
using XUnitTest.XCode.TestEntity;

namespace XUnitTest.XCode.Configuration
{
    public class TableItemTests
    {
        [Fact]
        public void TrimIndex()
        {
            var ti = TableItem.Create(typeof(Log2));
            XTrace.WriteLine(ti.TableName);
            Assert.Equal(4, ti.DataTable.Indexes.Count);
        }
    }
}