Browse Source

Synchronization code

pull/31/head
sunkaixuan 2 years ago
parent
commit
5c343e58c1
  1. 8
      Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs

8
Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityMaintenance.cs

@ -346,6 +346,14 @@ namespace SqlSugar
{
continue;
}
if (column.DataType == null&& property != null&& property.PropertyType.Name.IsIn("TimeOnly"))
{
column.DataType = "time";
}
if (column.DataType == null && property != null && property.PropertyType.Name.IsIn("DateOnly"))
{
column.DataType = "date";
}
result.Columns.Add(column);
}
}

Loading…
Cancel
Save