mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
- 优化 ICodeFirst.SyncStructure 错误提示,当使用不可迁移实体时;
This commit is contained in:
@ -9,6 +9,7 @@ using NpgsqlTypes;
|
||||
using Npgsql.LegacyPostgis;
|
||||
using System.Linq.Expressions;
|
||||
using System.Threading.Tasks;
|
||||
using System.Collections;
|
||||
|
||||
namespace FreeSql.Tests {
|
||||
public class UnitTest1 {
|
||||
@ -112,9 +113,24 @@ namespace FreeSql.Tests {
|
||||
|
||||
}
|
||||
|
||||
public class TestEnumable : IEnumerable<TestEnumable> {
|
||||
public IEnumerator<TestEnumable> GetEnumerator() {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator() {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void Test1() {
|
||||
|
||||
g.sqlite.CodeFirst.SyncStructure<TestEnumable>();
|
||||
|
||||
var TestEnumable = new TestEnumable();
|
||||
|
||||
|
||||
g.sqlite.GetRepository<Model1, int>().Insert(new Model1 {
|
||||
title = "test_" + DateTime.Now.ToString("yyyyMMddHHmmss"),
|
||||
M2Id = DateTime.Now.Second + DateTime.Now.Minute,
|
||||
|
Reference in New Issue
Block a user