﻿<?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 Support dynamic fields with NHibernate and .NET 4.0</title><description>Epraim,
  
Yes, it does.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment18</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment18</guid><pubDate>Wed, 30 Mar 2011 08:31:30 GMT</pubDate></item><item><title>Ephraim commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>How are the newcolumns created in customer_extensions.Is it Nhibernate doing update schema on the database.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment17</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment17</guid><pubDate>Wed, 30 Mar 2011 07:09:11 GMT</pubDate></item><item><title>Tattu commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>This is great for basic types.But can I add a many to one relation problematically.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment16</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment16</guid><pubDate>Mon, 21 Mar 2011 13:16:07 GMT</pubDate></item><item><title>Jake Scott commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Is there any way to combine this with NHibernate Lucene Full text search?
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment15</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment15</guid><pubDate>Thu, 17 Mar 2011 10:07:41 GMT</pubDate></item><item><title>Ayende Rahien commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Janis,
  
I was actually referring to:
  
&gt; In general, I would recommend anyone that needs dynamic fields to work with a data storage solution that supports it (like RavenDB , for example).
  
  
But in response to your other questions:
  
- You can put a collection in a dynamic property.
  
- You can edit the configuration programatically
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment14</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment14</guid><pubDate>Sat, 12 Mar 2011 16:35:42 GMT</pubDate></item><item><title>janis commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>uuu..?  you still using a xml mapper and need to edited the xml file for adding new fields... 
  
  
i don't see that you are getting a collection from the database..
  
  
&lt;property  
has only one propertie..  it isn't a collection.. 
  
  
so if i need to add  Eyesize  i need to put 
  
&lt;property  
in it :s.... 
  
  
oke.. you don't need to add it in the .net code.. but you have to edit in backend the xml file.. :S..
  
&gt;</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment13</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment13</guid><pubDate>Sat, 12 Mar 2011 09:40:53 GMT</pubDate></item><item><title>Ayende Rahien commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Janis,
  
I guess you missed the part where I recommended doing just that, then...
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment12</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment12</guid><pubDate>Sat, 12 Mar 2011 08:46:24 GMT</pubDate></item><item><title>janis commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>looks nice.. but i don't like it that you need to write in the xml file properties of a dynamic field..
  
  
why... because it isn't dynamic any more.. if there is a new field you have to go in the code to add it..
  
  
that's why this is better to use it with mongodb  because of the json solution. you don't need to use xml..or get in the code for adding a new field
  
  
  
add field detail page on asp.net and it add this field in the document at the monogdb.. you can even search these dynamic fields..
  
  
that's the real dynamic..
  
  
gr.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment11</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment11</guid><pubDate>Fri, 11 Mar 2011 22:42:25 GMT</pubDate></item><item><title>Daniel Lang commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>@Frank:
  
Whether different databases and schemas for different tenants are a good choice depends on the kind of software. Let's say you have a SaaS - based CRM-application and you want your customers to choose which fields make up a single business-contact. You need to find a way, to dynamically allow to customize the contact-entity.
  
  
In such a case it would not only be a waste of memory (each db-instance can take up to hundreds of mb) but also a unnecessary overhead while managing updates, backups, etc.
  
  
@Oren:
  
Would you say that RavenDB would be a good choice in such a situation?
  
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment10</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment10</guid><pubDate>Wed, 09 Mar 2011 13:30:58 GMT</pubDate></item><item><title>Ayende Rahien commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Hazzik,
  
Since the data storage in a RDBMS, you really have no choice.
  
  
Daniel,
  
You should use different schemas / databases for different tenants.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment9</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment9</guid><pubDate>Wed, 09 Mar 2011 12:55:37 GMT</pubDate></item><item><title>Frank Quednau commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Daniel, I guess supporting different customers with different schemas on the same DB schema will always be an interesting proposition.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment8</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment8</guid><pubDate>Wed, 09 Mar 2011 10:06:49 GMT</pubDate></item><item><title>Boris Drajer commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Great stuff, in v3.0 NHibernate has really outgrown the "ORM" moniker and is on its way to becoming a platform.
  
  
@hazzik: I believe you could use ConfORM or Fluent NHibernate to do the mapping dynamically.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment7</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment7</guid><pubDate>Wed, 09 Mar 2011 09:58:44 GMT</pubDate></item><item><title>Daniel Lang commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>I think the main advantage of this approach is the huge performance benefit over an EAV model. Unfortunately I don't see a way to get this working in a multi-tenant architecture, where different tenants need to have individual fields, while still using on the same DB.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment6</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment6</guid><pubDate>Wed, 09 Mar 2011 06:39:24 GMT</pubDate></item><item><title>hazzik commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>So, I need to define each of dynamic field in the mapping? I think it is ugly.
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment5</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment5</guid><pubDate>Wed, 09 Mar 2011 06:14:37 GMT</pubDate></item><item><title>Michael Chandler commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Nice post. Jeremy Miller has posted some good blog posts on the same topic.
  
  
[codebetter.com/.../our-extension-properties-story/](http://codebetter.com/jeremymiller/2010/02/16/our-extension-properties-story/)  
[codebetter.com/.../how-do-you-extend-and-custom...](http://codebetter.com/jeremymiller/2007/02/19/how-do-you-extend-and-customize-a-database/)</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment4</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment4</guid><pubDate>Tue, 08 Mar 2011 23:23:24 GMT</pubDate></item><item><title>Andrey Shchekin commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>I would say using some kind of IUserType (I do not remember if 
&lt;dynamic-component allows that) to create the HashtableDynamicObject would be better.
  
  
Otherwise anyone who refactors the code to virtual dynamic Attributes { get; private set; } will break it, because it is not obvious that this field is used externally.
&gt;</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment3</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment3</guid><pubDate>Tue, 08 Mar 2011 21:14:18 GMT</pubDate></item><item><title>Fred commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Yeah, thats really cool and easy. 
  
And btw it is good to read some interesting stuff again after a long time... :-)
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment2</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment2</guid><pubDate>Tue, 08 Mar 2011 21:13:13 GMT</pubDate></item><item><title>Franck commented on Support dynamic fields with NHibernate and .NET 4.0</title><description>Very nice indeed!
</description><link>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment1</link><guid>http://ayende.com/4776/support-dynamic-fields-with-nhibernate-and-net-4-0#comment1</guid><pubDate>Tue, 08 Mar 2011 18:22:10 GMT</pubDate></item></channel></rss>