mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Add unit test
This commit is contained in:
parent
1e2ee8ccf8
commit
3f8674e754
@ -173,8 +173,22 @@ namespace OrmTest
|
||||
{
|
||||
throw new Exception("uint error");
|
||||
}
|
||||
Db.CodeFirst.InitTables<unitBytedfa>();
|
||||
|
||||
Db.Fastest<unitBytedfa>().BulkCopy(new List<unitBytedfa>() {
|
||||
new unitBytedfa(){ aaa=new byte[]{ 1,2,3,4,3,1} }
|
||||
});
|
||||
var data4=Db.Queryable<unitBytedfa>().First();
|
||||
if (string.Join("", data4.aaa) != "123431")
|
||||
{
|
||||
throw new Exception("uint error");
|
||||
}
|
||||
}
|
||||
}
|
||||
public class unitBytedfa
|
||||
{
|
||||
public byte[] aaa { get; set; }
|
||||
}
|
||||
public class unitBools2
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true)]
|
||||
|
Loading…
Reference in New Issue
Block a user