with a custom IDatabaseFactory (mostly for testing). Changes AuditTrail to internal so the public way is just with the 'Audit' class. Fixed ThreadSafetyServiceTests which was failing with the new AuditTrail stuff because of the Database instances, this is not solved with the new PerThreadDatabaseFactory for the unit test. Created new 'UmbracoDatabase' object which inherits from the PetaPoco one so that we can future proof the implementation as we might want some custom logic on there. Now the IDatabaseFactory returns an UmbracoDatabase instead of just Database.
12 lines
259 B
C#
12 lines
259 B
C#
using System;
|
|
|
|
namespace Umbraco.Core.Persistence
|
|
{
|
|
/// <summary>
|
|
/// Used to create the UmbracoDatabase for use in the DatabaseContext
|
|
/// </summary>
|
|
internal interface IDatabaseFactory : IDisposable
|
|
{
|
|
UmbracoDatabase CreateDatabase();
|
|
}
|
|
} |