|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
ASP.NET MVC - LINQ Datacontext not implementedHallo,
I am testing ASP.NET MVC on Mono and have written a small C# example, retrieving data with LINQ from a database and displaying this data in an form. I have tested this program on the Windows ASP.NET platform and the next step was to start the sample application on a linux box with Mono (the newest VMWare image from mono-project). It was no problem, to build the application with MonoDevelop, but when I started the application I got the error message "System.NotImplementedException: The requested feature is not implemented. at TrainerDB.TrainerDBModelDataContext..ctor () [0x00000] in /srv/www/htdocs/TrainerDB_V2/TrainerDB/Controllers/LoginController.cs:1" I did some investigations and found a lot of comments, that the DataContext really isn't implemented in the assembly System/Data/Linq On the other side, a lot of people are posting, it is possible to port a "Windows" applications to Mono. I found the Link "Linq to SQL on Mono Update: NerdDinner on Mono" (http://www.jprl.com/Blog/archive/development/mono/2009/May-14.html) describuing in detail, what has to be done to run the Nerdinner application on Mono. This application is using the LINQ DataContext class too. What is the trick, what has to be done, to start a MVC application with LINQ DataContext on Mono. I appreciate any hint, which will help me to solve my problem Regards Michael |
|
|
Re: ASP.NET MVC - LINQ Datacontext not implementedAs you can see from the roadmap (http://mono-project.com/Roadmap), Link to DB integration is planned for Mono 2.6 (due out in November).
But you could already try your app with Mono SVN, to check everything is right beforehand and possibly report Link to DB bugs.
|
|
|
Re: ASP.NET MVC - LINQ Datacontext not implementedThank you for the hint, Stifu.
I checked out the current source from the anonymous svn repository and built it, but still failed to run my MVC app. Finally Mike Borozdin's blog http://www.mikeborozdin.com/post/LINQ-To-MySQL.aspx helped me solving the problem. Now using the Linq provider from DbLinq makes my app run as intended. Regards Michael |
| Free embeddable forum powered by Nabble | Forum Help |