Reputation: 11
var cfg = new Configuration();
cfg.Configure();
cfg.AddAssembly(typeof(<ClassName>).Assembly);
new SchemaExport(cfg).Execute(false, true, false, false);
The above piece of code is supposed to create a database Table with name <ClassName>
.
But it is not creating.
Upvotes: 1
Views: 2476
Reputation: 1168
The first parameter to Execute() must be true.
new SchemaExport(cfg).Execute(**true**, true, false, false);
I don't know why, but there you have it.
Upvotes: 0
Reputation: 25946
Your most likely problems:
Upvotes: 7