subsonic - Build Error: 'System.Array' does not contain a definition for 'Columns', -


I am using Subsonic 2.1 for my web application. It is working fine until recently I added a table to store user files (such as MS Word, PDF, JPEG, GIF, TIF files) in my SQL Server 2005 database. The files are stored in a ReportFile column called varbinary (max).

After generating SubSonic code, I create it, and get this error:

'System.Array' does not make 'column' for a definition And any extension method 'Column' to 'System' Array 'can not be accepted for the first argument (do you miss the use director or assembly reference?)

Abusive method:

  public Return MyWebApp.ReportFileCollection ReportFiles () {newMyWebApp.ReportFileCollection (). Where (ReportFile.Columns.ReportID, ReportID) .load (); }  

Again, I have checked the file FileFile.cs, and see that the column is defined as the structure:

  #region Column public structure column {public static string ReportFileID = "ReportFileID"; Public Static String FileName = @ "FileName"; Public Static String ReportID = @ "ReportID"; Public Static String MimeType = @ "MimeType"; Public Static String FileSize = @ "FileSize"; Public Static String FileData = @ "FileData"; Public static string uploaddate = @ "uploaddate"; } I thought that it might have to be done with the Verbal (max) column, so I tested the generating code with a test database, in which a verbal (maximum) column, and it worked perfectly. 

Due to this error, I have to comment on this ReportFiles method. Anyone knows about this? Is it mysterious for me to solve any sort of solution? Thanks a lot.

It seems like the naming controversy of one of the names I have already declared. Perhaps the error in your monitoring is not telling you the whole truth that you may need to use in web.config to convert the column to non-conflicting values.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -