Update: Support extended logging arguments

This commit is contained in:
Gary Sharp
2013-05-15 16:19:04 +10:00
parent 0914a85be6
commit 7389d7521f
13 changed files with 44 additions and 27 deletions
@@ -11,13 +11,13 @@ namespace Disco.Services.Logging.Targets
{
public LogPersistContext(string ConnectionString) : base(ConnectionString) { }
static LogPersistContext()
{
Database.SetInitializer<LogPersistContext>(new LogPersistContextInitializer());
}
public DbSet<Models.LogModule> Modules { get; set; }
public DbSet<Models.LogEventType> EventTypes { get; set; }
public DbSet<Models.LogEvent> Events { get; set; }
protected override void OnModelCreating(DbModelBuilder modelBuilder)
{
//modelBuilder.Conventions.Remove<IncludeMetadataConvention>();
}
}
}