Create table dynamiccally

Topics: Customizing Orchard, Writing modules
May 16, 2013 at 9:45 AM
Hello, it is possible to create table dynamically (For exmaple when user press "Create table" in he view)? I know how can I get nhibernate's ISession, but it only exposes For method that need to be parametrized (by model, I guess). I just want to create new table, and access it in the future (I don't want to map it with any model).
How can I do that?
Developer
May 16, 2013 at 9:52 AM
Sure, you can access SchemaBuilder anywhere. Just create one.
May 16, 2013 at 10:01 AM
Edited May 16, 2013 at 10:04 AM
Ok, I will take a look. But how can I access table data? SchemaBuilder exposes ExecuteSql, but its return type is SchemaBuilder, so I don't I could access data.