mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
Updateable ignorecolums pgsql array type
This commit is contained in:
parent
e86c82881c
commit
c08434233b
@ -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
|
||||
{
|
||||
|
@ -113,6 +113,9 @@ namespace SqlSugar
|
||||
{
|
||||
sqlParameter.NpgsqlDbType = ArrayMapping[type] | NpgsqlDbType.Array;
|
||||
}
|
||||
else if (type==DBNull.Value.GetType())
|
||||
{
|
||||
}
|
||||
else
|
||||
{
|
||||
Check.Exception(true, sqlParameter.Value.GetType().Name + " No Support");
|
||||
|
Loading…
Reference in New Issue
Block a user