npoco Questions

5

Solved

I have a database table named Tags (Id, Name) from which I would like to select the ones where the name matches a name in a list. In SQL I would use something like: Select * from Tags Where Name I...
Ungotten asked 4/8, 2011 at 15:32

2

Solved

I've noticed a huge difference in how NPoco (or PetaPoco) works depending on which function you call when you are using LINQ. For instance compare Fetch() which Query() which both appear to do th...
Dollydolman asked 30/6, 2016 at 16:42

1

Solved

Using NPoco, I'm trying to figure out how to update more than one column of an object (but not all of them). This works... db.Update(item, new[] { "status", "tracking_number", "updated_at" }); ....
Flaunt asked 17/5, 2017 at 17:20

1

Solved

I have recently started diving into the new .net core along with asp.net core mvc. There have been several issues that I have come across but have been able to get most of them answered on my own. ...

1

Given the following table in my database (PostgreSQL) CREATE TABLE produkt ( id SERIAL NOT NULL, name VARCHAR(50), created_at TIMESTAMP WITHOUT TIME ZONE DEFAULT timezone('utc'::text, now()) );...
Fete asked 20/1, 2015 at 13:8

1

Is it possible to map a complex class with both a nested class and a collection class with NPoco? I've had a look at the documentation but it's not 100% clear whether i can map to this class with o...
Rolfe asked 14/1, 2014 at 21:50

2

Solved

NPoco seems to be a DLL that implments more advanced features of PetaPoco. PetaPoco installs code generation templates and PetaPoco.cs. The Nuget version of PetaPoco is 4.0.3. I know there are vers...
Marchellemarcher asked 6/1, 2013 at 21:49

1

Solved

I am trying to use Npoco but running into some problems with FetchOneToMany I have a sql statement that joins 2 tables together and I output all the columns. [TableName("TableA")] [PrimaryKey("...
Whitethroat asked 22/10, 2012 at 20:49
1

© 2022 - 2024 — McMap. All rights reserved.