在我的数据库中,每个表都属于一个模式(例如Person)。我正在使用Fluent NHibernate和自动映射,我的问题是如何设置我想要使用的模式。
发布于 2009-11-27 20:07:56
使用convention,特别是IClassConvention。
发布于 2014-12-09 14:50:52
public class SchemaConvention : IClassConvention
{
public void Apply(IClassInstance instance)
{
instance.Schema("schemaNameGoesHere");
}
}https://stackoverflow.com/questions/1807915
复制相似问题