In search of a tool for working with a database using LINQ, I came across linq2db, but I’m foul, or the documentation is too meager, but I’m stuck on an elementary Insert. Link to github library: https://github.com/linq2db/linq2db
Here is my table in the db:
[Table(Name = "AnimePosters")] public class AnimePoster { [PrimaryKey, Column(Name = "title_id"), NotNull] public int title_id { get; set; } [Column(Name = "original"), NotNull] public string original { get; set; } [Column(Name = "preview"), NotNull] public string preview { get; set; } [Column(Name = "x96"), NotNull] public string x96 { get; set; } [Column(Name = "x48"), NotNull] public string x48 { get; set; } } public class DBRatesDB : LinqToDB.Data.DataConnection { public DBRatesDB() : base("RatesDB") { } public ITable<AnimePoster> AnimePoster { get { return GetTable<AnimePoster>(); } } } Described entities for the table. The compiler does not swear at reading (Select), but when I try to use Insert as written in ReadMe.
Example from README.md
using (var db = new DbNorthwind()) { db.Insert(product); } As I understand it, product is an instance of an entity class that defines a table from a database, that is, for me it should be AnimePoster, but it gives me an incomprehensible error.
Can anyone help with this or you have your own library versions for working with LINQ with Access or SQLite databases (any of them). I would be very grateful if you attach examples to your options for basic queries like Select | Insert | Delete | Update or a link to the documentation where this is all described in detail.


linq2db.Access? - BulsonPM> Install-Package linq2db- MrModest