Skip to content

Commit a101254

Browse files
committed
FIX: Version.Generated returning incorrect type
1 parent e9bcc58 commit a101254

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/FluentNHibernate/Mapping/VersionPart.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class VersionPart : IVersionMappingProvider
1212
private readonly Type entity;
1313
private readonly Member property;
1414
private readonly AccessStrategyBuilder<VersionPart> access;
15-
private readonly VersionGeneratedBuilder<IVersionMappingProvider> generated;
15+
private readonly VersionGeneratedBuilder<VersionPart> generated;
1616
private readonly AttributeStore<VersionMapping> attributes = new AttributeStore<VersionMapping>();
1717
private readonly AttributeStore<ColumnMapping> columnAttributes = new AttributeStore<ColumnMapping>();
1818
private readonly List<string> columns = new List<string>();
@@ -23,13 +23,13 @@ public VersionPart(Type entity, Member property)
2323
this.entity = entity;
2424
this.property = property;
2525
access = new AccessStrategyBuilder<VersionPart>(this, value => attributes.Set(x => x.Access, value));
26-
generated = new VersionGeneratedBuilder<IVersionMappingProvider>(this, value => attributes.Set(x => x.Generated, value));
26+
generated = new VersionGeneratedBuilder<VersionPart>(this, value => attributes.Set(x => x.Generated, value));
2727
}
2828

2929
/// <summary>
3030
/// Specify if this version is database generated
3131
/// </summary>
32-
public VersionGeneratedBuilder<IVersionMappingProvider> Generated
32+
public VersionGeneratedBuilder<VersionPart> Generated
3333
{
3434
get { return generated; }
3535
}

0 commit comments

Comments
 (0)