dapper
Dapper - Multi Mapping with a single return value
Below is the code I\'m using to return a paged list of objects: string query2 = @\" select count(*) as TotalCount from blogposts p where p.Deleted = 0 and p.PublishDate <= @date[详细]
2023-03-09 19:54 分类:问答Store enum as string in database
I am experimenting with dapper.开发者_运维技巧 I have a class which has an enum and the values are stored as strings in the database.[详细]
2023-03-09 07:56 分类:问答Writing Dapper Query for Nested Objects
I have a code Structure as below: class Person { Name PersonName; int Age; } class Name { string FirstName { get; set; }[详细]
2023-03-08 16:06 分类:问答Using Dapper to populate Enum properties
In using Dapper\'s Query() function, I am trying to fill in a class that has a property which is an enumerated value.In my database, this column is stored as a byte.However, in the class, they are an[详细]
2023-03-07 19:01 分类:问答How to name columns for multi mapping support in Dapper?
var sql = @\"SELECT a.id AS `Id`, 开发者_如何学编程 a.thing AS `Name`, b.id AS `CategoryId`, b.something AS `CategoryName`[详细]
2023-03-06 19:33 分类:问答Does Dapper do an auto-select of columns that match properties?
When using Dapper-dot-net, if your querying to a strongly typed results, and your SQL just has a: select *[详细]
2023-03-06 17:10 分类:问答Can't get multi-mapping to work in Dapper
Playing around with Dapper, I\'m quite pleased with the results so far - intriguing! But now, my next scenario would be to read data from two tables - a Student and an Address table.[详细]
2023-03-06 09:05 分类:问答Is there a way to call a stored procedure with Dapper?
I am very impressed with the results of Dapper Micro ORM for stackoverflow.com. I am considering it for my new project and but I have one concern about that some times my project requires to have Stor[详细]
2023-03-04 06:06 分类:问答Performing Inserts and Updates with Dapper
I am interested in using Dapper - but from what I can tell it only supports Query and Execute.I do not see that Dapper includes a way of Inserting and Updating objects.[详细]
2023-03-04 04:04 分类:问答Dapper ORM paging and sorting
I am giving the Dapper ORM a try. I am able to query data from a table using the code below: Dim开发者_如何学JAVA comments As List(Of Comment)[详细]
2023-03-03 06:28 分类:问答