Exemple #1
0
 public static IQueryable <FreeTextKey <TKey> > FreeTextTableWithLanguage <TTable, TKey>(this ISqlServerExtensions?ext, ITable <TTable> table, string term, string language)
 {
     return(table.DataContext.FromSql <FreeTextKey <TKey> >($"FREETEXTTABLE({Sql.TableExpr(table)}, *, {term}, LANGUAGE {language})"));
 }
Exemple #2
0
 public static bool ContainsWithLanguage(this ISqlServerExtensions?ext, [ExprParameter] string search, [ExprParameter] int language, [ExprParameter] params object?[] tableOrColumns)
 {
     throw new LinqException($"'{nameof(ContainsWithLanguage)}' is server-side method.");
 }
Exemple #3
0
 public static bool ContainsPropertyWithLanguage(this ISqlServerExtensions?ext, object?column, string property, string search, int language)
 {
     throw new LinqException($"'{nameof(ContainsProperty)}' is server-side method.");
 }
Exemple #4
0
 public static bool FreeTextWithLanguage(this ISqlServerExtensions?ext, [ExprParameter] string term, [ExprParameter] string language, [ExprParameter] params object?[] tableOrColumns)
 {
     throw new LinqException($"'{nameof(FreeTextWithLanguage)}' is server-side method.");
 }
Exemple #5
0
 public static IQueryable <FreeTextKey <TKey> > FreeTextTable <TTable, TKey>(this ISqlServerExtensions?ext, ITable <TTable> table, string term, int top)
 {
     return(table.DataContext.FromSql <FreeTextKey <TKey> >($"FREETEXTTABLE({Sql.TableExpr(table)}, *, {term}, {top})"));
 }
Exemple #6
0
 public static IQueryable <FreeTextKey <TKey> > ContainsTableWithLanguage <TTable, TKey>(this ISqlServerExtensions?ext, ITable <TTable> table, Expression <Func <TTable, object?> > columns, string search, int language)
 {
     return(table.DataContext.FromSql <FreeTextKey <TKey> >($"CONTAINSTABLE({Sql.TableExpr(table)}, ({Sql.FieldsExpr(table, columns)}), {search}, LANGUAGE {language})"));
 }
Exemple #7
0
 public static IQueryable <FreeTextKey <TKey> > ContainsTableWithLanguage <TTable, TKey>(this ISqlServerExtensions?ext, ITable <TTable> table, string search, int language)
 {
     return(table.DataContext.FromSql <FreeTextKey <TKey> >($"CONTAINSTABLE({Sql.TableExpr(table)}, *, {search}, LANGUAGE {language})"));
 }
Exemple #8
0
 public static IQueryable <FreeTextKey <TKey> > FreeTextTableWithLanguage <TTable, TKey>(this ISqlServerExtensions?ext, ITable <TTable> table, Expression <Func <TTable, object?> > columns, string term, int language, int top)
 {
     return(table.DataContext.FromSql <FreeTextKey <TKey> >($"FREETEXTTABLE({Sql.TableExpr(table)}, ({Sql.FieldsExpr(table, columns)}), {term}, LANGUAGE {language}, {top})"));
 }