New Silverlight 2 ADO.NET Data Service Example

  • Nov 08, 2008 at 11:35 PM
  • Shawn Wildermuth
  • 12 Comments

Url: http://www.silverlightdata.com

Silverlight Logo

I've finally had a chance to update my Silverlight 2-ADO.NET Data Services example. In this new sample I show how to create a Line-of-Business application (an XBox Game editor) using ADO.NET Data Services against both an Entity Framework model and NHibernate. Unlike earlier examples, this one includes implementation against the ADO.NET Data Service Silverlight 2 library to support saving of changed entities. In addition, I show some techniques for paging, retrieving simple types over an ADO.NET Data Service and full styling of the application. I hope to add support for Forms Authentication in the coming weeks.

Feel free to post replies with questions about the sample.

 

Comments

Gravatar

Martin Nyborg Sunday, November 9, 2008

I get this error on startup, Running from silverlightdata

Database failure: system does not support 'iso-8859-1'. Line 1, position 31

I am using firefox

Gravatar

Shawn Wildermuth Sunday, November 9, 2008

Martin,

I am looking into this now. What version of FF are you using?

Gravatar

Shawn Wildermuth Sunday, November 9, 2008

Fixed...it was a bug in my code for serializing non-Entity Service Operations (that I am submitting to SilverlightContrib).

Gravatar

Martin Nyborg Sunday, November 9, 2008

Thanks and keep up the good work.

One small suggestion. Can you include the NHibernate dll's you are using - there is so many different version out there.

Gravatar

Shawn Wildermuth Sunday, November 9, 2008

Martin,

I am purposefully not doing that so I don't become a central place for it. The version I am using is directly from the NHibernateContrib project.

Gravatar

Josh Reuben Thursday, November 13, 2008

the NHibernateContrib "burrow" download includes the NHibernate and Log4Net dlls, but the NHibernate.Linq dll is nowhere to be found. How about some clearer instructions, so that people can actually compile your code?

Gravatar

Steve Thursday, January 8, 2009

As with Josh, NHibernate.Linq dll is nowhere to be found.

Please advise!

Gravatar

Shawn Wildermuth Thursday, January 8, 2009

Let me look into it. The current version I am using seems to be an old version that maybe didn't make it into the build.

Gravatar

Shawn Wildermuth Thursday, January 8, 2009

In order to build this code you will need to get the source code of NHibernateContrib and manually build the NHibernate.Linq. The problem is that the LINQ support is only partial in this version. The reason they aren't including it is that they won't be able to completely support LINQ until the NHibernate 2.5 is complete.

I don't want to build it and offer a version here as that would leave users without changes. I want NHibernateContrib to be the ultimate source. Sorry for the inconvenience.


Leave a Comment

*
*
*