mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-26 14:15:50 +08:00
Updateable ignorecolums pgsql array type
This commit is contained in:
@@ -20,9 +20,19 @@ namespace OrmTest
|
||||
list= Db.Queryable<UnitJsonTest>().ToList();
|
||||
UValidate.Check("order2", list.First().Order.Name, "Json");
|
||||
var list2 = Db.Queryable<UnitJsonTest>().ToList();
|
||||
Db.CodeFirst.InitTables<UnitArrayTest>();
|
||||
Db.Updateable(new UnitArrayTest() { Name="a" }).IgnoreColumns(true).ExecuteCommand();
|
||||
}
|
||||
}
|
||||
|
||||
public class UnitArrayTest
|
||||
{
|
||||
[SqlSugar.SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set;}
|
||||
[SqlSugar.SugarColumn(IsArray =true)]
|
||||
public int[] ids { get; set; }
|
||||
}
|
||||
|
||||
public class UnitJsonTest
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user