You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/FluentNHibernate.Testing/DomainModel/Mapping/JoinPartTester.cs
+24Lines changed: 24 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,30 @@ public void JoinIsAlwaysLastInTheClassElement()
101
101
.Element("class/*[last()]").HasName("join");
102
102
}
103
103
104
+
[Test]
105
+
publicvoidJoinContainsAnSqlInsertElement()
106
+
{
107
+
newMappingTester<JoinTarget>()
108
+
.ForMapping(m =>m.Join("myTable", t =>t.SqlInsert("INSERT INTO myTable VALUES(?)")))// Now it's not important whether statement is correct or not.
109
+
.Element("class/join/sql-insert").Exists();
110
+
}
111
+
112
+
[Test]
113
+
publicvoidJoinContainsAnSqlUpdateElement()
114
+
{
115
+
newMappingTester<JoinTarget>()
116
+
.ForMapping(m =>m.Join("myTable", t =>t.SqlUpdate("UPDATE myTable SET Name = ? WHERE Id = ?")))// Now it's not important whether statement is correct or not.
117
+
.Element("class/join/sql-update").Exists();
118
+
}
119
+
120
+
[Test]
121
+
publicvoidJoinContainsAnSqlDeleteElement()
122
+
{
123
+
newMappingTester<JoinTarget>()
124
+
.ForMapping(m =>m.Join("myTable", t =>t.SqlDelete("DELETE FROM myTable WHERE Id = ?")))// Now it's not important whether statement is correct or not.
0 commit comments