Questions tagged [linq2db]

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

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

Architecturally it is one step above micro-ORMs like Dapper, Massive, or PetaPoco, in that you work with LINQ expressions, not with magic strings, while maintaining a thin abstraction layer between your code and the database. Your queries are checked by the C# compiler and allow for easy refactoring.

However, it's not as heavy as LINQ to SQL or Entity Framework. There is no change-tracking, so you have to manage that yourself, but on the plus side you get more control and faster access to your data.

See Wiki for more details.

Code examples and demos can be found here.

183 questions
0
votes
3 answers

LINQ2B POCO when db table name is unknown

I have a requirement to use Linq2DB to pull data from different databases. In this example, lets just say it is SQL2012. I create my POCO class like the one below public class MyPoco { public string Name { get; set; } public int Age { get;…
Paul Davey
  • 87
  • 1
  • 8
0
votes
2 answers

LinqToDB with SQLite - reference properties are null

I have a few POCOs on a relatively simple domain model. One example looks like this: [Table("Tag")] public partial class Tag { [PrimaryKey, NotNull ] public string Name { get; set; } // varchar(128) [Column, Nullable] public…
robhol
  • 195
  • 1
  • 11
-1
votes
1 answer

linq2db select and automapper

I have code like this return dbConnection.SomeLogTable .OrderByDescending(logRecord=> logRecord.Timestamp) .Select(dto => _mapper.Map(dto)) .Skip(offset) …
SkySurfer
  • 517
  • 3
  • 15
1 2 3
12
13