You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Ron Grabowski (JIRA)" <ib...@incubator.apache.org> on 2005/07/08 16:17:45 UTC

[jira] Updated: (IBATISNET-88) TimeSpanTypeHandler.cs is not implemented

     [ http://issues.apache.org/jira/browse/IBATISNET-88?page=all ]

Ron Grabowski updated IBATISNET-88:
-----------------------------------

    Attachment: TimeSpanTypeHandler.cs

Untested implementation that converts values to/from DateTime then returns the TimeOfDay property (which is a TimeSpan). For example:

 // DateTimeTypeHandler.cs
 return dataReader.GetDateTime(mapping.ColumnIndex);

 // TimeSpanTypeHanlder.cs
 return dataReader.GetDateTime(mapping.ColumnIndex).TimeOfDay;

> TimeSpanTypeHandler.cs is not implemented
> -----------------------------------------
>
>          Key: IBATISNET-88
>          URL: http://issues.apache.org/jira/browse/IBATISNET-88
>      Project: iBatis for .NET
>         Type: Bug
>   Components: DataMapper
>     Reporter: Ron Grabowski
>  Attachments: TimeSpanTypeHandler.cs
>
> public override object GetValueByName(ResultProperty mapping, IDataReader dataReader)
> {
>  return "ToDo";
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira