mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Optimize the PGSQL
This commit is contained in:
parent
a10e28652c
commit
936936154a
@ -45,8 +45,18 @@ namespace OrmTest
|
||||
}
|
||||
}).ExecuteCommand();
|
||||
var xxx = Db.Queryable<UnitArray311>().ToList();
|
||||
|
||||
Db.CodeFirst.InitTables<UnitUUID1XX>();
|
||||
Db.Insertable(new UnitUUID1XX() { ID = Guid.NewGuid() }).ExecuteCommand();
|
||||
var x1 = Db.Queryable<UnitUUID1XX>().ToList();
|
||||
}
|
||||
}
|
||||
|
||||
public class UnitUUID1XX
|
||||
{
|
||||
[SugarColumn(ColumnDataType ="uuid")]
|
||||
public Guid ID { get; set; }
|
||||
}
|
||||
public class UnitArray311
|
||||
{
|
||||
[SugarColumn(IsArray =true,ColumnDataType ="text []" )]
|
||||
|
@ -354,11 +354,11 @@ namespace SqlSugar
|
||||
{
|
||||
item.Length = 1;
|
||||
}
|
||||
if (dataType == "uuid")
|
||||
{
|
||||
item.Length = 50;
|
||||
dataType = "varchar";
|
||||
}
|
||||
//if (dataType == "uuid")
|
||||
//{
|
||||
// item.Length = 50;
|
||||
// dataType = "varchar";
|
||||
//}
|
||||
string dataSize = item.Length > 0 ? string.Format("({0})", item.Length) : null;
|
||||
if (item.DecimalDigits > 0&&item.Length>0 && dataType == "numeric")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user