Skip to content

Commit 40fe0d4

Browse files
committed
extended ColumnInstance for Conventions
1 parent c24de5a commit 40fe0d4

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/FluentNHibernate/Conventions/Instances/ColumnInstance.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,15 @@ public ColumnInstance(Type parentType, ColumnMapping mapping)
1818
{
1919
mapping.Set(x => x.Length, Layer.Conventions, length);
2020
}
21+
22+
public new void Index(string indexname)
23+
{
24+
mapping.Set(x => x.Index, Layer.Conventions, indexname);
25+
}
26+
27+
public new void Default(string defaultvalue)
28+
{
29+
mapping.Set(x => x.Default, Layer.Conventions, defaultvalue);
30+
}
2131
}
2232
}

src/FluentNHibernate/Conventions/Instances/IColumnInstance.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@ namespace FluentNHibernate.Conventions.Instances
55
public interface IColumnInstance : IColumnInspector
66
{
77
new void Length(int length);
8+
new void Index(string indexname);
9+
new void Default(string defaultvalue);
810
}
911
}

0 commit comments

Comments
 (0)