bug : Select dynamic byte[]

This commit is contained in:
skx
2020-12-04 20:22:09 +08:00
parent f62c15d74d
commit 66726e5f07
2 changed files with 30 additions and 0 deletions

View File

@@ -137,6 +137,24 @@ namespace OrmTest
});
int i = 0;
var salist= sa.ToPageList(1,2,ref i);
db.CodeFirst.InitTables<UnitBytes11>();
db.Insertable(new UnitBytes11() { bytes = null, name = "a" }).ExecuteCommand();
db.Insertable(new UnitBytes11() { bytes=new byte[] { 1,2} , name="a"}).ExecuteCommand();
var bytes = db.Queryable<UnitBytes11>().Select(it => new
{
b = it.bytes,
name="a"
}).ToList();
}
public class UnitBytes11
{
[SugarColumn(Length =200,IsNullable =true)]
public byte[] bytes { get; set; }
public string name{ get; set; }
}
/// <summary>