문제

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