You can create entities dynamically by feeding them to the Configuration 
(or some inner object, don't have that on top of my head) and you can query 
them using HQL or Entity Mode Map.

RP

On Thursday, November 9, 2017 at 8:44:10 PM UTC, Matt Mangold wrote:
>
> The reason for this is so that power users can extend the schema of the 
> application to suit their business needs.  This is common in CMS systems 
> where end users need to create new screens and or entities.  We have a 
> standard application that is used by many tenants.  Each tenant has 
> different needs and some need additional tables to track their data.  This 
> application already has a screen builder and report builder that can 
> interact with existing entities in the system, and it is all dynamic super 
> flexible.  
>
> I actually got a prototype working yesterday that uses Roslyn to generate 
> C# POCO entities and Fluent Nhibernate mapping files.  Roslyn is nice, 
> because you can compile code in real time.  
>
>
> On Thursday, November 9, 2017 at 12:13:54 PM UTC-7, Gunnar Liljas wrote:
>>
>> While that would certainly be possible, how would it be used? What should 
>> be queryable? Quantities?
>>
>> /G
>>
>> 2017-11-08 17:02 GMT+01:00 Matt Mangold <[email protected]>:
>>
>>> I need to create a way for end users to create custom entities and 
>>> create custom relationships between entities.  Has anyone done this before 
>>> in NHibernate?
>>>
>>> I was thinking about using Codedom to create entities and mapping files 
>>> then generating the schema on the fly.  I was wondering if there are any 
>>> patterns around that solve this problem.
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "nhusers" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected].
>>> To post to this group, send email to [email protected].
>>> Visit this group at https://groups.google.com/group/nhusers.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/nhusers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to