mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 01:14:33 +08:00
Update CodeFirst (DateOnly TimeOnly)
This commit is contained in:
parent
4796aaa8d3
commit
7dc8ded2a8
@ -346,6 +346,14 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
continue;
|
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);
|
result.Columns.Add(column);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user