Dec 1, 2012 at 6:28 AM
Edited Dec 1, 2012 at 6:39 AM
|
Could you help implementing it, they request to use a call like this
Fluently.Configure()
.Database(MsSqlConfiguration.MsSql2008.ConnectionString(connectionString).Driver<SqlAzureClientDriver>())
and I found in Orchard AbstractDataServicesProvider class the call which seems to be the only to change (there are also the Test classes, but could wait)
public Configuration BuildConfiguration(SessionFactoryParameters parameters) { var database = GetPersistenceConfigurer(parameters.CreateDatabase); var persistenceModel = CreatePersistenceModel(parameters.RecordDescriptors.ToList());
return Fluently.Configure() .Database(database) .Mappings(m => m.AutoMappings.Add(persistenceModel))
.ExposeConfiguration(cfg => cfg.EventListeners.LoadEventListeners = new ILoadEventListener[] { new OrchardLoadEventListener() })
.BuildConfiguration() ; }
How could I adapt Orchard code ?
I understand that their call is only for SQL Server ???? My knowledge of Orchard is too low to understand at which layer I could implement correctly the code branch ?
|