开发者

Where can I find the database for Summer of Nhibernate tutorials?

I am trying to learn from the screencast videos of Summer of Nhibernate and I am in the third video. The tutorials have never until now given / shown the full view of Database and I am worried that there might be fields missing in my mocked up DB. Now I am going through data manipulation techniques and I 开发者_如何学编程need to have data in all 4 tables.

Where / How can I find that demo database? I searched in the site entirely, searched on google, no leads.

Thanks.


If you have mappings you can generate it with SchemaExport.


You can generate database schema and script file in this way:

        var conf = new NHibernate.Cfg.Configuration();
        conf.Configure();


        var export = new SchemaExport(conf);
        export.SetOutputFile(@"DatabaseScript.sql");
        export.Drop(true, true);
        export.Create(true, true);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜