mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update CodeFirst (DateOnly TimeOnly)
This commit is contained in:
parent
4796aaa8d3
commit
7dc8ded2a8
@ -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…
Reference in New Issue
Block a user