Skip to content

Commit 8c7ad8d

Browse files
committed
Added diagnostic logging
Logging enabled for fluent mapping discovery, convention discovery, and initial automapping behaviour (scanning, exclusions, and candidates). To use, modify your Fluent.Configuration code: Fluently.Configure() ... .Diagnostics(dia => { dia.Enable(); dia.OutputToConsole(); }) .BuildSessionFactory();
1 parent cfe8c1f commit 8c7ad8d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1725
-30
lines changed

src/FluentNHibernate.5.0.ReSharper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
<PredefinedRule Inspect="True" Prefix="_" Suffix="" Style="aaBb" ElementKind="PrivateStaticFields" />
220220
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateConstants" />
221221
<PredefinedRule Inspect="True" Prefix="" Suffix="" Style="AaBb" ElementKind="PrivateStaticReadonly" />
222-
<UserRule Inspect="True" Prefix="" Suffix="" Style="aa_bb" StaticnessKind="Static, Instance" AccessRight="Private, Protected, ProtectedInternal, Internal, Public" Description="MSpec naming">
222+
<UserRule Inspect="False" Prefix="" Suffix="" Style="aa_bb" StaticnessKind="Static, Instance" AccessRight="Private, Protected, ProtectedInternal, Internal, Public" Description="MSpec naming">
223223
<ElementKinds>
224224
<Kind Name="Machine.Specifications_Behavior" />
225225
<Kind Name="Machine.Specifications_Context" />

src/FluentNHibernate.Specs/Automapping/Fixtures/StubTypeSource.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using FluentNHibernate.Diagnostics;
34

45
namespace FluentNHibernate.Specs.Automapping.Fixtures
56
{
@@ -16,5 +17,15 @@ public IEnumerable<Type> GetTypes()
1617
{
1718
return types;
1819
}
20+
21+
public void LogSource(IDiagnosticLogger logger)
22+
{
23+
logger.LoadedFluentMappingsFromSource(this);
24+
}
25+
26+
public string GetIdentifier()
27+
{
28+
return "StubTypeSource";
29+
}
1930
}
2031
}

0 commit comments

Comments
 (0)