mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +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
|
||||
{
|
||||
|
@@ -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");
|
||||
|
Reference in New Issue
Block a user