- 修复 Dto 映射查询属性名不区分大小写 bug #427;

This commit is contained in:
28810
2020-08-19 16:11:22 +08:00
parent 09d7623b1b
commit 306f619e90
4 changed files with 21 additions and 22 deletions

View File

@ -435,9 +435,24 @@ namespace FreeSql.Tests
}
public enum TestUpdateModelEnum { x1, x2, x3 }
public class Cadre
{
public int? education { get; set; }
public int? Education { get; set; }
}
public class TbCadre
{
public Guid Id { get; set; }
public int? Education2 { get; set; }
}
[Fact]
public void Test1()
{
g.sqlite.Insert(new[] { new TbCadre { Education2 = 10 }, new TbCadre { Education2 = 11 } }).ExecuteAffrows();
var tst102 = g.sqlite.Select<TbCadre>().First(a => new Cadre { Education = a.Education2 });
var testemoji = new TestGuidId { xxx = "💐🌸💮🌹🌺🌻🌼🌷🌱🌿🍀" };
Assert.Equal(1, g.sqlserver.Insert(testemoji).ExecuteAffrows());
var emoji = g.sqlserver.Select<TestGuidId>().Where(a => a.Id == testemoji.Id).First();