All Projects → fissoft → Fissoft.EntityFramework.Fts

fissoft / Fissoft.EntityFramework.Fts

Licence: MIT license
Full Text Search for Microsoft SQL Server with Entity Framework

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to Fissoft.EntityFramework.Fts

Goldeneye
The CQRS flavoured framework that will speed up your WebAPI and Microservices development
Stars: ✭ 171 (+210.91%)
Mutual labels:  nuget, entity-framework
OpenSleigh
OpenSleigh is a Saga management library for .NET Core.
Stars: ✭ 198 (+260%)
Mutual labels:  nuget, entity-framework
pineblog
A light-weight blogging engine written in ASP.NET Core MVC Razor Pages, using Entity Framework Core or MongoDb.
Stars: ✭ 60 (+9.09%)
Mutual labels:  entity-framework
SQLServerTools
This repo is the home of various SQL-Server-Tools
Stars: ✭ 28 (-49.09%)
Mutual labels:  microsoft-sql-server
LinqBuilder
LinqBuilder is an advanced implementation of the specification pattern specifically targeting LINQ query generation.
Stars: ✭ 34 (-38.18%)
Mutual labels:  entity-framework
coreclr-module
CoreClr (.NET Core Common Language Runtime) community made module https://fabianterhorst.github.io/coreclr-module/index.html
Stars: ✭ 65 (+18.18%)
Mutual labels:  nuget
PostgreSQL.AspNet.Identity.EntityFramework
ASP.NET Identity 2.0 Storage Provider using PostgreSQL EntityFramework
Stars: ✭ 26 (-52.73%)
Mutual labels:  entity-framework
mathcore
Advanced .NET math library (.NET Standard).
Stars: ✭ 24 (-56.36%)
Mutual labels:  nuget
xunit-to-junit
This Extensible Stylesheet Language Transformations can transform a xUnit.net v2 XML test results file into a JUnit test results file.
Stars: ✭ 21 (-61.82%)
Mutual labels:  nuget
TeamSpeak3QueryApi
.NET wrapper for the TeamSpeak 3 Query API
Stars: ✭ 56 (+1.82%)
Mutual labels:  nuget
Gatekeeper
Lightweight library in C# for implementing roles-based access control (RBAC). With Gatekeeper, you can define users, roles, resources, and permissions, and authorize requests.
Stars: ✭ 25 (-54.55%)
Mutual labels:  nuget
craft
The universal Sentry release CLI 🚀
Stars: ✭ 117 (+112.73%)
Mutual labels:  nuget
Templates
CodeSmith Generator Templates
Stars: ✭ 52 (-5.45%)
Mutual labels:  entity-framework
soddi
StackOverflow Data Dump Importer. Forked from https://bitbucket.org/bitpusher/soddi/ after the original author passed away.
Stars: ✭ 74 (+34.55%)
Mutual labels:  microsoft-sql-server
database-migrations-dotnet
A code example showing 5 ways to manage database schema in .NET
Stars: ✭ 44 (-20%)
Mutual labels:  entity-framework
SilkierQuartz
SilkierQuartz can host jobs using HostService and Provide a web management tools for Quartz !
Stars: ✭ 263 (+378.18%)
Mutual labels:  nuget
MinimalNugetServer
A minimal but cross-platform implementation of a NuGet server, running on .NET Core
Stars: ✭ 46 (-16.36%)
Mutual labels:  nuget
codegenerator
Generate EF6 WebApi with an AngularJS font-end
Stars: ✭ 11 (-80%)
Mutual labels:  entity-framework
SimpleSockets
Asynchronous TCP .NET library with reliable transmission and receipt of data, with an ssl implementation.
Stars: ✭ 74 (+34.55%)
Mutual labels:  nuget
BlazorEFCoreMultitenant
Examples of multitenancy using EF Core and Blazor.
Stars: ✭ 67 (+21.82%)
Mutual labels:  entity-framework

Fissoft.EntityFramework.Fts

Full Text Search for Microsoft SQL Server with Entity Framework

NuGet Install

install from nuget Build status release CodeFactor

PM> Install-Package Fissoft.EntityFramework.Fts

Demo

Execute init code on start or static ctor.

    DbInterceptors.Init();

When search you can use the code following.

    var text = FullTextSearchModelUtil.Contains("code");
    db.Tables.Where(c=>c.Fullname.Contains(text));
    var text = FullTextSearchModelUtil.FreeText("code ef");
    db.Tables.Where(c=>c.Fullname.Contains(text));
    var text = FullTextSearchModelUtil.ContainsAll("code ef");
    db.Tables.Where(c=>c.Name.Contains(text)); //c.Name could be any string property of model
    var text = FullTextSearchModelUtil.FreeTextAll("code ef");
    db.Tables.Where(c=>c.Name.Contains(text)); //c.Name could be any string property of model
    var text = FullTextSearchModelUtil.Contains("a b",true);
    var query = db.TestModel.Where(c => c.Name.Contains(text)).ToList(); 
    // Should return results that contain BOTH words. For the second param = false, should return records with either of the words

Multi field query

var query = db.TestModel
                    .Where(c => (c.Name+c.Text).Contains(text))
                    .ToList();

will generate the sql

SELECT 
    [Extent1].[Id] AS [Id], 
    [Extent1].[Text] AS [Text], 
    [Extent1].[Name] AS [Name]
    FROM [dbo].[TestModels] AS [Extent1]
    WHERE CONTAINS(([Extent1].[Name] , [Extent1].[Text]),@p__linq__0);

Reference:

http://www.entityframework.info/Home/FullTextSearch

About .NET Core

In .NET core 2.1 you can use offical freetext method to search.

Install the package Microsoft.EntityFrameworkCore.SqlServer.

   using Microsoft.EntityFrameworkCore;
   var result = db.TestModel.Where(c => EF.Functions.FreeText(c.Text, "search"));

EF.Docs# Use FreeText( and soon Contains )functions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].