From ab070b408d9bbb81977ec6c35dc49097b46dbbf2 Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sat, 16 Apr 2022 22:28:58 +0800 Subject: [PATCH] Update unit --- Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs b/Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs index 452a459f7..633bcb959 100644 --- a/Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs +++ b/Src/Asp.NetCore2/SqliteTest/UnitTest/UCodeFirst.cs @@ -18,6 +18,17 @@ namespace OrmTest Db.Insertable(new Test00111()).ExecuteCommand(); var list = Db.Queryable().ToList(); Db.CodeFirst.InitTables(); + Db.CodeFirst.InitTables(); + Db.Insertable(new UnitByteArray() + { + Data = new byte[] { 1, 2, 123, 31, 1 } + }).ExecuteCommand(); + var list2=Db.Queryable().ToDataTable(); + } + + public class UnitByteArray + { + public byte[] Data { get; set; } } public class Test00111121 {