- 调整DynamicEntity单元测试

This commit is contained in:
d4ilys
2023-05-05 11:52:18 +08:00
parent c761e45b92
commit d26ad21833
2 changed files with 1 additions and 45 deletions

View File

@ -15,7 +15,6 @@ namespace FreeSql.Tests.DynamicEntity
"Host=192.168.0.36;Port=5432;Username=postgres;Password=123; Database=test;ArrayNullabilityMode=Always;Pooling=true;Minimum Pool Size=1")
.UseMonitorCommand(d => Console.WriteLine(d.CommandText)).Build();
[Fact]
public void NormalTest()
{
@ -68,7 +67,7 @@ namespace FreeSql.Tests.DynamicEntity
Type type = DynamicCompileHelper.DynamicBuilder()
.Class("Roles", new TableAttribute() { Name = "T_Role" },
new IndexAttribute("Name_Index", "Name", false))
.SuperClass(typeof(BaseModel))
.Extend(typeof(BaseModel))
.Property("Id", typeof(int),
new ColumnAttribute() { IsPrimary = true, IsIdentity = true, Position = 1 })
.Property("Name", typeof(string),