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
Marked EnumerableUtils.One as obsolete to not be in use
There are three dotnet alternatives which work better - Repeat, Append and
Prepend, which cover all the possible scenarios and track actual number of items in
result sequence
Copy file name to clipboardExpand all lines: Orm/Xtensive.Orm.Tests.Sql/MySQL/MiscTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -353,7 +353,7 @@ public void FreeTextTest()
353
353
{
354
354
SqlSelectselect=SqlDml.Select();
355
355
vartable=Catalog.DefaultSchema.Tables["Address"];
356
-
select.From=SqlDml.QueryRef(SqlDml.FreeTextTable(table,"How can I make my own beers and ales?",EnumerableUtils.One(table.Columns[0].Name).ToList(),EnumerableUtils.One(table.Columns[0].Name).ToList()));
356
+
select.From=SqlDml.QueryRef(SqlDml.FreeTextTable(table,"How can I make my own beers and ales?",new[]{table.Columns[0].Name},new[]{table.Columns[0].Name}));
select.From=SqlDml.QueryRef(SqlDml.FreeTextTable(table,"How can I make my own beers and ales?",EnumerableUtils.One(table.Columns[0].Name).ToList(),EnumerableUtils.One(table.Columns[0].Name).ToList()));
363
+
select.From=SqlDml.QueryRef(SqlDml.FreeTextTable(table,"How can I make my own beers and ales?",new[]{table.Columns[0].Name},new[]{table.Columns[0].Name}));
0 commit comments