Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用这个生成器 - http://nmg.codeplex.com/。但它会生成没有架构的映射文件。我必须浏览所有映射文件并手动插入Schema("someschema")方法。如何使用架构生成实体和映射文件?也许另一个发电机?提前致谢。
Schema("someschema")
有可以在 NHibernate.Cfg.Configuration 上设置的 NH.Cfg.Environment.DefaultSchema 属性,还有 FNH 的约定来为每个类设置架构,请参阅IClassConvention。
IClassConvention