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
  • 3
  • 8
  • 23

2 Answers2

1

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

Frédéric
  • 9,364
  • 3
  • 62
  • 112
Nick Ryan
  • 2,662
  • 1
  • 17
  • 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
  • 17,078
  • 2
  • 44
  • 70