﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Sebastijan,
  
RIA services are supported, as pointed out here:
  
[blogs.msdn.com/.../...-update-part-nhibernate.aspx](http://blogs.msdn.com/brada/archive/2009/08/06/business-apps-example-for-silverlight-3-rtm-and-net-ria-services-july-update-part-nhibernate.aspx)  
  
This post is meant to address the use of NHibernate on the _client_
  
  
And I am not taking bug reports in the blog.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment27</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment27</guid><pubDate>Tue, 11 Aug 2009 14:25:07 GMT</pubDate></item><item><title>Sebastijan commented on A short note about NHibernate and Silverlight</title><description>You say "it is going to work just like any client / server system". This is only true, if you are using normal web services and with a few ugly tricks (big hacks) of creating a VS project that shares entities.
  
But is not true when using RIA services, since there are problems with many to one associations mapping. See 
[http://silverlight.net/forums/t/109667.aspx](http://silverlight.net/forums/t/109667.aspx)  
It seems as that NHibernate developers simply have to abandon the best thing that happened to .NET and that is Silverlight, since I dont think this will be resolved due to "nobody cares". This is really funny.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment26</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment26</guid><pubDate>Tue, 11 Aug 2009 09:44:26 GMT</pubDate></item><item><title>Andr&amp;#233;s G. Aragoneses commented on A short note about NHibernate and Silverlight</title><description>So there's an alternative for those who don't want to the client-server separation route, but not using NHibernate.
  
  
  
Use SQLite C#: 
[www.itwriting.com/.../...nning-in-silverlight.html](http://www.itwriting.com/blog/1695-proof-of-concept-c-sqlite-running-in-silverlight.html)</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment25</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment25</guid><pubDate>Mon, 10 Aug 2009 20:30:29 GMT</pubDate></item><item><title>Alexey commented on A short note about NHibernate and Silverlight</title><description>I'm totally agree with Mike Griffin.
  
  
But I think such API as Dynamic Query should be open and be able to adopt to different ORMs.
  
  
ADO.NET Data Services target that problem, but it leaves much to be desired.
  
  
May be It is possible to create such API by creating some light version of IQToolkit which is not related to database classes.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment24</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment24</guid><pubDate>Thu, 30 Jul 2009 04:14:19 GMT</pubDate></item><item><title>Peter Morris commented on A short note about NHibernate and Silverlight</title><description>Personally I think it is a good thing.
  
  
The lack of such functionality forces people to treat the client app as ONLY a client app, and not some massively fat client that can do anything and exposes a direct connection to the database.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment23</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment23</guid><pubDate>Wed, 29 Jul 2009 08:25:01 GMT</pubDate></item><item><title>Mike Griffin commented on A short note about NHibernate and Silverlight</title><description>Actually, no, it works great. If you look at that blog post above there are links to few other blog posts on how we do it. Basically, in your Silverlight project when you add a reference to your WCF service you can tell it to not generate proxies and instead use your own proxies. So, we can go from our lightweight proxies to our full server objects (and back again) through normal DataContract serialization. Honestly, you cannot tell the difference between the two when programming. This is exactly how it is supposed to be done, that is, DataContract is meant to serialize in and out of different classes, the the KnownTypes attribute. Look at our sample code on that post. Our save method in WCF is one line, it commits the data and returns the very same collection with autoincrement keys populated, records deleted, whatever. We've had customers working like this in WCF for quite some time, now we've made our DynamicQuery API work under Silverlight as it doesn't reference anything from System.Data or any ADO.NET code.
  
  
If you take a moment to really look at that code there is no easier way to work with Silverlight that with EntitySpaces. You lose no functionality in the ES API when running under Silverlight, You can bind your collection to a grid in Silverlight and merely send the collection back to the Server and call Collection.Save() on it. The collection knows which rows are dirty, which columns are modified, which rows are deleted, added and so on. And you can make use our full DynamicQuery API from under Silverlight and send the query to the server and get your data back just like in normal EntitySpaces programming. Our customers working with our Alpha absolutely love it. We are looking at an early September GA release. We've always had great proxy support but really put alot into them on this release specifically for Silverlight.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment22</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment22</guid><pubDate>Tue, 28 Jul 2009 23:48:32 GMT</pubDate></item><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Mike,
  
Aren't you running into the Fallacies of Distributed Computing in this way? 
  
Every time that I saw a component that pretended that the network wasn't there, it ended in tears.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment21</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment21</guid><pubDate>Tue, 28 Jul 2009 22:12:56 GMT</pubDate></item><item><title>highlander commented on A short note about NHibernate and Silverlight</title><description>i have never tried it but it should be possible to use CSLA.NET for silverlight with nhibernate 
  
[http://www.lhotka.net/cslalight/Default.aspx](http://www.lhotka.net/cslalight/Default.aspx)  
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment20</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment20</guid><pubDate>Tue, 28 Jul 2009 18:59:23 GMT</pubDate></item><item><title>Mike Griffin commented on A short note about NHibernate and Silverlight</title><description>Our Architecture does run under Silverlight, and requires only a single 50k assembly. Our full DynamicQuery's work as well, and our smart proxies maintain row state, it's great for writing Silverlight applications, in fact, you cannot even tell the difference from our smart proxies to our full server side classes, they are the same.
  
  
See
  
  
[www.entityspaces.net/.../...light+Demo+Online.aspx](http://www.entityspaces.net/blog/2009/07/17/The+EntitySpaces+Silverlight+Demo+Online.aspx)  
  
The code to make it all happen is rediculously easy ...
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment19</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment19</guid><pubDate>Tue, 28 Jul 2009 16:58:53 GMT</pubDate></item><item><title>Dmitry commented on A short note about NHibernate and Silverlight</title><description>Talking to the database directly from Silverlight client reminds of me of client side VBScript connecting to the database and creating AJAX-like functionality in HTML in the mid-late 90s.
  
  
It would certainly be a bad practice. You have to deal with a lot of connections, as noted by Demis, as well as store the connection string on a client.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment18</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment18</guid><pubDate>Tue, 28 Jul 2009 14:11:48 GMT</pubDate></item><item><title>Demis Bellot commented on A short note about NHibernate and Silverlight</title><description>Yeah I don't like the idea of having your client application talking to a database directly either. Apart from the scalability/resource issues of each client maintaining a persistant db connection (as was done in the old days) you will also have connectivity issues when you try to view it outside your corporate firewall, it is kind of like having internal links like file://fileserver.domain.com/partypics.jpg which will only work on the Intranet.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment17</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment17</guid><pubDate>Tue, 28 Jul 2009 10:11:37 GMT</pubDate></item><item><title>NikiTa commented on A short note about NHibernate and Silverlight</title><description>[http://www.hessiancsharp.org/](http://www.hessiancsharp.org/) can help.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment16</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment16</guid><pubDate>Tue, 28 Jul 2009 10:05:17 GMT</pubDate></item><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Huseyin,
  
I'll have a separate about that.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment15</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment15</guid><pubDate>Tue, 28 Jul 2009 09:08:39 GMT</pubDate></item><item><title>Chris van de Steeg commented on A short note about NHibernate and Silverlight</title><description>To see a sample of RIA Services working with nHibernate see my latest blog post: 
[www.chrisvandesteeg.nl/.../aspnet-mvc-dynamicda...](http://www.chrisvandesteeg.nl/2009/07/13/aspnet-mvc-dynamicdata-domain-riaservices-unity-and-nhibernate-part-1/)</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment14</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment14</guid><pubDate>Tue, 28 Jul 2009 07:28:50 GMT</pubDate></item><item><title>Niclas Pehrsson commented on A short note about NHibernate and Silverlight</title><description>Not me either, just an wild tip when talking about client databases.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment13</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment13</guid><pubDate>Tue, 28 Jul 2009 07:26:20 GMT</pubDate></item><item><title>Huseyin Tufekcilerli commented on A short note about NHibernate and Silverlight</title><description>Ayende (and all the crew around here),
  
  
What do you think about NHibernate on the client side of a desktop application like a Windows Forms/WPF application directly accessing the database via NHibernate? I always try to avoid this and try to use an application server between my clients and the DB. Clients talk to server and server talks to DB (using NH of course). This way I can assess the necessary security rights in my app server. The other way around, should the clients have the credentials to the DB server and should I make security assignments to my DB tables, views, etc.?
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment12</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment12</guid><pubDate>Tue, 28 Jul 2009 06:44:37 GMT</pubDate></item><item><title>Mark Monster commented on A short note about NHibernate and Silverlight</title><description>I think the requirement of a local database can be filled by using something like Local IsolatedStorage.
  
  
This might be a good solution, I never tried it though.
  
[http://silverdb.codeplex.com/](http://silverdb.codeplex.com/)</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment11</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment11</guid><pubDate>Tue, 28 Jul 2009 06:29:14 GMT</pubDate></item><item><title>Mike Brown commented on A short note about NHibernate and Silverlight</title><description>I know what you meant...but RIA would be a possible bridge between the two since it autogenerates the client side bindings.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment10</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment10</guid><pubDate>Tue, 28 Jul 2009 01:29:11 GMT</pubDate></item><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Niclas,
  
That is... not quite what I have in mind when I think about silverlight apps.
  
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment9</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment9</guid><pubDate>Tue, 28 Jul 2009 01:18:19 GMT</pubDate></item><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Steve,
  
That is a different question all together :-)
  
I think you know my answer, UpdateCustomer vs. ChangeCustomerAddress
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment8</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment8</guid><pubDate>Tue, 28 Jul 2009 01:17:32 GMT</pubDate></item><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Mike,
  
RIA works with NHibernate, but that isn't quite what I meant in the post.
  
Silverlight is a client side tech, RIA, at least the part that matters, works on the server.
  
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment7</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment7</guid><pubDate>Tue, 28 Jul 2009 01:16:23 GMT</pubDate></item><item><title>Niclas Pehrsson commented on A short note about NHibernate and Silverlight</title><description>I heard about a cool solution to access a local database with silverlight, and it was to install a service on the client's computer and connect to it with 
[http://localhost:xxx/someservice/](http://localhost:xxx/someservice/)  
  
But when you need to do this its time to question if silverlight is the right method to use. :)
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment6</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment6</guid><pubDate>Tue, 28 Jul 2009 00:49:36 GMT</pubDate></item><item><title>Steve commented on A short note about NHibernate and Silverlight</title><description>I suspect people asking about NHibernate and Silverlight are really meaning 'how to use NHibernate with Silverlight in a disconnected manner'
  
  
I have setup some examples of using NHibernate with Silverlight and RIA.NET.  I use DTO's to the client with Automapper to map them back and forth.
  
  
I think the questions are more about 'let' say I use my NHibernate POCO objects, what is the best way in that setup to 'reattach' them to a ISession in terms of updating, optimistic concurrency concerns, etc... (Not that I use that method, but I certainly have considered it for smaller applications)
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment5</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment5</guid><pubDate>Tue, 28 Jul 2009 00:48:34 GMT</pubDate></item><item><title>Mike Brown commented on A short note about NHibernate and Silverlight</title><description>Brad Abrams has a post on using RIA services against a non-EF/L2s backend...presumably, one would be able to create the same kind of interaction with NH as well.
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment4</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment4</guid><pubDate>Tue, 28 Jul 2009 00:12:28 GMT</pubDate></item><item><title>Chris Brandsma commented on A short note about NHibernate and Silverlight</title><description>Maybe you should direct people to NHibernate and WCF instead -- since that is how the communication is supposed to happen between Silverlight and a web server.
  
  
How about NHibernate for .Net CF instead.  :)  
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment3</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment3</guid><pubDate>Mon, 27 Jul 2009 23:28:06 GMT</pubDate></item><item><title>Ayende Rahien commented on A short note about NHibernate and Silverlight</title><description>Andres,
  
No, it does not
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment2</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment2</guid><pubDate>Mon, 27 Jul 2009 22:24:51 GMT</pubDate></item><item><title>Andr&amp;#233;s G. Aragoneses commented on A short note about NHibernate and Silverlight</title><description>But Silverlight 3.0 introduces desktop applications. Do you know if System.Data.IDbConnection is available in SL3.0?
</description><link>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment1</link><guid>http://ayende.com/4088/a-short-note-about-nhibernate-and-silverlight#comment1</guid><pubDate>Mon, 27 Jul 2009 22:17:58 GMT</pubDate></item></channel></rss>