in project I am mapping DbType Time to System.TimeSpan. It should by fine, but I am still getting error DBML1005. I have noticed that this is frequently asked topic on internet, but in all the other topics were about mapping custom datatypes.

Error 1 DBML1005: Mapping between DbType 'Time NOT NULL' and Type 'System.TimeSpan' in Column 'RelayOnTime' of Type 'Terminal' is not supported.

<Column Name="RelayOnTime" Type="System.TimeSpan" DbType="Time NOT NULL"
        CanBeNull="false" />
有帮助吗?

解决方案

The problem is in Visual Studio. I had Visual Studio 2008 RTM version, that still has some bugs. The solution is installing Service pack 1

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top