petapoco Questions

2

I am using CTE with PetaPOCO and getting a strange error SQL Exception: Invalid Object Name PayTransactionForRollingVacationAverage that references the model that the data should map to. The code ...
Cockspur asked 22/5, 2013 at 15:54

1

Solved

For while I am trying to call SQL Server 2008 R2 stored procedure using PetaPoco. My stored procedure accepts a table valued parameter. How I can call the stored procedure in petapoco with table...

2

Solved

way to map the following to a Dictionary?? Sql sql = new Sql() .Append("SELECT Count(*) ") .Append("FROM Custumers") .Append("WHERE CustomerId = @0", Id) var result = database.Fetch<Dictionary...
Overexcite asked 30/5, 2013 at 15:53

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

3

I just test PetaPoco Transaction in a multithread way... I have a simple test case : -- Simple value object call it MediaDevice -- Insert a record an update it for 1000 times void TransactionThr...
Kimsey asked 25/6, 2012 at 15:7

2

Solved

I am using PetaPoco on my current project as a micro ORM and i must say that i like it. However, i found myself struggling with simple scenario - unit testing services that use PetaPoco.Database p...
Cottony asked 26/5, 2012 at 13:37

4

Solved

I am using PetaPoco Micro-ORM with C# 4.0. The code below retrieves a single row from the database: var result = db.SingleOrDefault<TdUsers>(getUserQuery); I would like to check whether o...
Violante asked 25/5, 2012 at 11:31

1

Solved

I am using PetaPoco.Core 4.0.3 in a C# app to access a MySql database. I'm trying to create a query that uses variables, but I don't want them to be treated by PetaPoco as input parameters. Here ...
Effluvium asked 19/4, 2012 at 20:30

2

Solved

I need to create a DAL and repositories using petapoco. The difficulty that comes in, is that I dont know how it manages its connections. If I was using dapper I know how the connection proc...
Deirdredeism asked 13/8, 2011 at 18:10

1

Solved

I am having an sql statement as follows: SELECT [User].[ID], [User].[Name], [User].[Email] FROM [User] WHERE Email = '[email protected]'' and it's firing an error as follows from pet...
Livelong asked 9/3, 2012 at 6:36

2

Solved

I'm trying to get MVCMiniProfiler to work with PetaPoco I'm trying to set the connection in the creation of the PetaPoco DB, but run into problems (connectionClosed) public class DbHelper { stat...
Dyeline asked 19/8, 2011 at 19:5

2

Solved

What is the fastest option for inserting records into the database: using which of these: Database.Insert(poco) Database.Insert(tableName, pkName, poco) Database.Save(poco) Database.Save(tableNa...
Incredulity asked 31/12, 2011 at 19:0

1

Solved

In the example given on PetaPoco's web site, this is how to decorate a class: [PetaPoco.TableName("articles")] [PetaPoco.PrimaryKey("article_id")] public class article { public long article_id { ...
Von asked 31/8, 2011 at 14:33

1

Solved

I have a table containing service announcements. For this table I have a 1:1 POCO - except that it contains one extra field. In my query this is the joined in username of the author, the table cont...
Nievelt asked 25/8, 2011 at 7:44

1

Solved

I have a list objects I use to fill using Petapoco. The class properties and names are maching the database schema. The main class is Issue, and it is related to two other classes which names and ...
Bonheur asked 12/7, 2011 at 12:36

© 2022 - 2024 — McMap. All rights reserved.