I would know who said you "because,all hbm files are need to be embedded".
3.1. Programmatic Configuration

An instance of NHibernate.Cfg.Configuration represents an entire set of
mappings of an application's .NET types to a SQL database. The Configuration is
used to build an (immutable)ISessionFactory. The mappings are compiled from
various XML mapping files.

You may obtain a Configuration instance by instantiating it directly. Heres
an example of setting up a datastore from mappings defined in two XML
configuration files:

Configuration cfg = new Configuration()
    .AddFile("Item.hbm.xml")
    .AddFile("Bid.hbm.xml");


On Thu, Aug 26, 2010 at 9:48 AM, harshil hameed <[email protected]> wrote:

> sry ,,dats not helping my requirement.
>
> My requirement is
> how do we build a system in which ' *user can add fields to an entity*?'
>
> Note:
>  "*dynamic-component*" in Nhibernate is not supporting it.
> because,all hbn files are need to be embedded.So we cant modify it in
> production server.
> *->* if there is any solution ,to create Nhibernate session without
> embedding, pls help me on it.
>
>
> Regards,
> Harshil
>
>
>
>
> On Thu, Aug 26, 2010 at 5:44 PM, Luka <[email protected]> wrote:
>
>> Hi,
>> maybe this could help:
>>
>> http://stackoverflow.com/questions/2551546/how-to-query-collections-in-nhibernate
>>
>>
>> On Aug 26, 12:58 pm, harshil <[email protected]> wrote:
>> >  how do we build a system in which you allow a user to add fields to
>> > an entity?
>> >
>> > ""dynamic-component" in Nhibernate" if its the solution,
>> >  how we can change hbn file in run time,Nhibernate need it as embedded
>> > naa.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "nhusers" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<nhusers%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/nhusers?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "nhusers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<nhusers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/nhusers?hl=en.
>



-- 
Fabio Maulo

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/nhusers?hl=en.

Reply via email to