About 427,000 results
Open links in new tab
  1. linq2db/examples: LINQ to DB Code Examples - GitHub

    Get started with LINQ over WCF using Windows Console application as a host. LINQ to DB Code Examples. Contribute to linq2db/examples development by creating an account on GitHub.

  2. c# - Executing raw SQL string using linq2db - Stack Overflow

    Jan 9, 2018 · linq2db is strongly typed but you can execute raw sql and map the result to anonymous class. For example: var result = ExecuteAnonymous(db, "select id, name from sysobjects", new { id = 0, name = "" }); Where ExecuteAnonumous is helper method:

  3. LINQ to DB | Linq To DB

    LINQ to DB is the fastest LINQ database access library offering a simple, light, fast, and type-safe layer between your POCO objects and your database.

  4. linq2db: How to teach LINQ to DB convert custom .NET …

    Jun 20, 2016 · In fact, you can consider LINQ to DB as type-safe SQL embedded in C#, VB.NET, and any other .NET languages. LINQ to DB is a straightforward LINQ into SQL translator that avoids any magic, implicity, and unexpected surprises. Get started The following example demonstrates how to start using LINQ to DB. Create a project.

  5. c# - Creating a database with linq2db - Stack Overflow

    Aug 25, 2018 · Linq2db offers Database First approach only, creating DB schema from entity mappings (Code First approach) is not supported out-of-the-box. However, Linq2db is able to generate CREATE TABLE DDL statements from mappings by IDataContext.CreateTable<T>. See also this discussion.

  6. c# - How to create database in Microsoft SQL Server using linq2db

    Dec 31, 2019 · Linq2Db has a link https://linq2db.github.io/index.html which provides more information about how to create a POCO and create a table based on it. As per the page, a simple POCO can go like this: [PrimaryKey, Identity] public int ProductID { get; set; } [Column(Name = "ProductName"), NotNull] public string Name { get; set; }

  7. examples/SqlCe/GetStarted/README.md at master · linq2db/examples

    Install the linq2db.SqlCe nuget. Open LinqToDB.Templates\CopyMe.SqlCe.tt.txt and follow the instructions inside the file. LINQ to DB Code Examples. Contribute to linq2db/examples …

  8. Configuring LINQ To DB for ASP.NET Core | Linq To DB - GitHub …

    In this walkthrough, you will configure an ASP.NET Core application to access a local SQLite Database using LINQ To DB. The following will be reuiqred to complete this walkthrough: First thing we're going to do is create a new ASP.NET Core application using the dotnet CLI.

  9. Getting started with LINQ To DB with an Existing Database

    In this walkthrough, you will build a console application that performs basic data access against a Microsoft SQL Server database using LINQ To DB. You will use existing database to create your model.

  10. Linq2Db Sample Set Used in Intros/Howtos · GitHub

    Nov 8, 2023 · //Linq2Db will perform some operations locally rather than server side: Sql.AsSql( SqlExpr.IsPositiveInteger(getsBetter.Value)? conn.GetTable<LookupTable>().Where(lt => lt.Id == Sql.Convert<int,string>(getsBetter.Value) ).Select(r=>r.Value).FirstOrDefault(): getsBetter.Value)).Dump(); //TODO: Recursive CTE Nightmare scenario.}} public class ...

  11. Some results have been removed
Refresh