3

Can Any Body Please Tell Me How We Are Create Schema Using nHibernate.Or Is It Possible Create Any Table Using nHibernate??

Thanks In Advance..

andy
  • 595
  • 2
  • 8
  • 23

2 Answers2

1

Yes it's possible. Search for "SchemaExport". Details here from nhibernate.info

Frédéric
  • 8,781
  • 3
  • 55
  • 108
Nick Ryan
  • 2,654
  • 1
  • 16
  • 24
  • Also, if you are using FluentNHibernate, you might find this article useful: http://wiki.fluentnhibernate.org/Schema_generation – Nick Ryan Feb 24 '12 at 14:03
1

It is possible but there is a very limited use for this feature (initial rollout and integration tests). See this answer.

new SchemaExport(_configuration).Execute(false, true, false);
Community
  • 1
  • 1
Dmitry
  • 16,663
  • 2
  • 39
  • 67