Im using latest SVN 2.2 build compiled with VS 2008. When I build my VB classes using Sonic.exe any columns of type Date (Not Datetime) are generated as "System.String". Has anybody else found this problem and have a solution or is this a problem with Subsonic?
相关问题
- SQL to Parse a Key-Value String
- Date with SimpleDateFormat in Java
- How to evaluate an input in the WHERE clause
- VBA local timezone adjustment
- employee id automatic generate with prefix
相关文章
- Code for inserting data into SQL Server database u
- SQL Server 2008 Change Data Capture, who made the
- MYSQL: How can I find 'last monday's date&
- How do we alias a Sql Server instance name used in
- Calculate number of working days in a month [dupli
- Get file created date in node
- Temporal Extraction (i.e. Extract date/time entiti
- Postgres String to Date EXAMPLE 10Apr77 to 10/04/1
Submit an issue here: http://code.google.com/p/subsonicproject/issues/list
It's still a pending issue, but it's an easy fix. If you have the SubSonic source code, make a few edits.
-- src\SubSonic\DataProviders\SqlDataProvider.cs.
Around line #1010 above "case datetime" add:
-- src\SubSonic\ActiveRecord\AbsractList.cs Around line #85 above "else if (dbType == DbType.DateTime)" add:
-- src\SubSonic\CodeLanguage\CSharpCodeLanguage.cs Around line #222 above "case DbType.DateTime" add:
I'm 99% these were the main changes needed, without these changes the last release will not properly support the SQL Server 2008 "DATE" data type.