Skip to content

Commit bb43119

Browse files
author
mickfold
committed
Fixed formatting on IsLogicalOneToOne property.
1 parent 58ddd3b commit bb43119

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/NHibernate/Mapping/ManyToOne.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public bool IsIgnoreNotFound
3838

3939
public bool IsLogicalOneToOne
4040
{
41-
get
42-
{ return isLogicalOneToOne; }
41+
get { return isLogicalOneToOne; }
4342
set { isLogicalOneToOne = value; }
4443
}
4544

src/NHibernate/Mapping/ManyToOne.cs.orig

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,21 @@ namespace NHibernate.Mapping
2929
}
3030

3131
private bool isIgnoreNotFound = false;
32+
private bool isLogicalOneToOne;
3233

3334
public bool IsIgnoreNotFound
3435
{
3536
get { return isIgnoreNotFound; }
3637
set { isIgnoreNotFound = value; }
3738
}
3839

40+
public bool IsLogicalOneToOne
41+
{
42+
get
43+
{ return isLogicalOneToOne; }
44+
set { isLogicalOneToOne = value; }
45+
}
46+
3947
private IType type;
4048
public override IType Type
4149
{
@@ -44,7 +52,7 @@ namespace NHibernate.Mapping
4452
if (type == null)
4553
{
4654
type =
47-
TypeFactory.ManyToOne(ReferencedEntityName, ReferencedPropertyName, IsLazy, UnwrapProxy, Embedded, IsIgnoreNotFound);
55+
TypeFactory.ManyToOne(ReferencedEntityName, ReferencedPropertyName, IsLazy, UnwrapProxy, Embedded, IsIgnoreNotFound, isLogicalOneToOne);
4856
}
4957
return type;
5058
}
@@ -127,8 +135,7 @@ namespace NHibernate.Mapping
127135

128136
public bool IsLogicalOneToOne
129137
{
130-
get
131-
{ return isLogicalOneToOne; }
138+
get { return isLogicalOneToOne; }
132139
set { isLogicalOneToOne = value; }
133140
}
134141

@@ -182,5 +189,5 @@ namespace NHibernate.Mapping
182189
}
183190
}
184191
}
185-
>>>>>>> For NH-1262: Ported cascade delete orphans functionality for one-to-one mappings from Hibernate to NHibernate.
192+
>>>>>>> Fixed formatting on IsLogicalOneToOne property.
186193
}

0 commit comments

Comments
 (0)