Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Entity framework 4 如何使用实体框架定义日期和时间_Entity Framework 4 - Fatal编程技术网

Entity framework 4 如何使用实体框架定义日期和时间

Entity framework 4 如何使用实体框架定义日期和时间,entity-framework-4,Entity Framework 4,Datetime通常定义为Datetime 如果我想要一列只写日期,另一列写时间呢 我可以定义[date]或[time]吗?开箱即用-否。虽然sql有数据类型date和time,但您可以使用数据类型[date]和[time]扩展实体框架,或者实现逻辑拆分DateTime为两个值

Datetime通常定义为Datetime

如果我想要一列只写日期,另一列写时间呢


我可以定义[date]或[time]吗?

开箱即用-否。虽然sql有数据类型date和time,但您可以使用数据类型[date]和[time]扩展实体框架,或者实现逻辑拆分DateTime为两个值