摘要:
1.初始化单个实体类ActiveRecordStarter.Initialize( source, typeof(User) ); 2.初始化多个实体类 1.ActiveRecordStarter.Initialize( source, typeof(Order),typeof(Product));2IConfigurationSource source = System.Configuration.ConfigurationManager.GetSection("activerecord") as IConfigurationSource; Type[] paramTyp 阅读全文
摘要:
1).Could not find the dialect in the configuration.如果你直接从官方网站上指引直接copy下来的话,会报此错误,官方的都不可靠啊:<add key="hibernate.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" /><add key="hibernate.dialect" value="NHibernate.Dialect.MsSql2000Dialect" 阅读全文