Browse Source

Add unit test

pull/33/head
sunkaixuan 2 years ago
parent
commit
f4c0335b45
  1. 13
      Src/Asp.Net/SqlServerTest/UnitTest/UnitInsertNavOneToOne.cs

13
Src/Asp.Net/SqlServerTest/UnitTest/UnitInsertNavOneToOne.cs

@ -52,10 +52,21 @@ using System.Data;
.Include(x => x.SysField)
.Include(x => x.FormUpload)
.ExecuteCommand();
db.Queryable<SysFormField>()
.Select(it => new xxx
{
id = 1,
NAME= it.SysField.FieldName+":"+it.FieldName.ToString()
}).ToList();
Console.WriteLine("用例跑完");
// Console.ReadKey();
}
}
public class xxx
{
public int id { get; set; }
public string NAME { get; set; }
}
Loading…
Cancel
Save