Skip to content

Commit 8b3d62b

Browse files
committed
Merge branch 'master' of https://github.com/firo222/fluent-nhibernate into 127combinedWith146
2 parents 56d130e + 8fb5c43 commit 8b3d62b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/FluentNHibernate/Automapping/DefaultAutomappingConfiguration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public virtual bool ShouldMap(Type type)
2020
return !type.ClosesInterface(typeof(IAutoMappingOverride<>)) &&
2121
!type.HasInterface(typeof(IMappingProvider)) &&
2222
!type.IsNestedPrivate &&
23+
!type.IsDefined(typeof(System.Runtime.CompilerServices.CompilerGeneratedAttribute), false)
2324
type.IsClass;
2425
}
2526

src/FluentNHibernate/Mapping/JoinPart.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,10 @@ public JoinPart<T> Not
129129
/// Specify the table name
130130
/// </summary>
131131
/// <param name="tableName">Table name</param>
132-
public void Table(string tableName)
132+
public JoinPart<T> Table(string tableName)
133133
{
134134
attributes.Set("TableName", Layer.UserSupplied, tableName);
135+
return this;
135136
}
136137

137138
JoinMapping IJoinMappingProvider.GetJoinMapping()

0 commit comments

Comments
 (0)