我正在使用aspnetcore和efcore开发一个小型webapp,创建该项目使用vs2017 defualt tempalte并用efsql替换为efsqlite。
创建表后,我发现所有日期时间?正在映射到TEXT而不是null。```C#
select *
from (
select info.*,ROW_NUMBER() OVER( order by info.modified_date DESC) rn
from (
select info.*, Count(*) OVER () AS info_count
from (
select * from User_Info info
where
( info.url LIKE 'url://%' )
AND (info.action = 'Action1' )
AND info.user_name ='john'
and info.modified_date >= '04/01/2014 00:00:00'
and info.modified_date <= '04/12/2014 23:59:59'
) info
) info
) info
WHERE rn >= 1 and rn <=100;
```
ps:只需使用注释(代码优先),大多数列都映射到TEXT类型。下面是生成的表示例: