mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
28 lines
711 B
C#
28 lines
711 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace OrmTest
|
|
{
|
|
internal class UnitBytesEmpty
|
|
{
|
|
public static void Init()
|
|
{
|
|
var db = NewUnitTest.Db;
|
|
db.CodeFirst.InitTables<Unitadfasfa2>();
|
|
db.Insertable(new Unitadfasfa2() { bytes = new byte[] { } }).ExecuteCommand();
|
|
var xxx=db.Queryable<Unitadfasfa2>().ToList();
|
|
if (xxx.First().bytes.Length != 0)
|
|
{
|
|
throw new Exception("unit error");
|
|
}
|
|
}
|
|
public class Unitadfasfa2
|
|
{
|
|
public byte[] bytes { get; set; }
|
|
}
|
|
}
|
|
}
|