- 补充 当初始化 ConnectionString 参数为空时,给出友好错误提示;

This commit is contained in:
28810
2019-05-30 09:19:13 +08:00
parent 58314516c6
commit f64d0e9d56
2 changed files with 10 additions and 0 deletions

View File

@ -123,9 +123,18 @@ namespace FreeSql.Tests {
}
}
public class TestEnum {
public Guid id { get; set; }
public Enum em { get; set; }
}
[Fact]
public void Test1() {
g.sqlite.Insert(new TestEnum { }).ExecuteAffrows();
var telist = g.sqlite.Select<TestEnum>().ToList();
Assert.Throws<Exception>(() => g.sqlite.CodeFirst.SyncStructure<TestEnumable>());
var TestEnumable = new TestEnumable();