Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dapper.SimpleCRUD/SimpleCRUD.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public static void SetColumnNameResolver(IColumnNameResolver resolver)
/// <param name="id"></param>
/// <param name="transaction"></param>
/// <param name="commandTimeout"></param>
/// <returns>Returns a single entity by a single id from table T.</returns>
/// <returns>Returns a single entity by a single id from table T or default(T) if no entity is found.</returns>
public static T Get<T>(this IDbConnection connection, object id, IDbTransaction transaction = null, int? commandTimeout = null)
{
var currenttype = typeof(T);
Expand Down
2 changes: 1 addition & 1 deletion Dapper.SimpleCRUD/SimpleCRUDAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public static partial class SimpleCRUD
/// <param name="id"></param>
/// <param name="transaction"></param>
/// <param name="commandTimeout"></param>
/// <returns>Returns a single entity by a single id from table T.</returns>
/// <returns>Returns a single entity by a single id from table T or default(T) if no entity is found.</returns>
public static async Task<T> GetAsync<T>(this IDbConnection connection, object id, IDbTransaction transaction = null, int? commandTimeout = null)
{
var currenttype = typeof(T);
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ Notes:
- The [Column] attribute can be used from the Dapper namespace, System.ComponentModel.DataAnnotations.Schema, or System.Data.Linq.Mapping - By default the column name will match the property name but it can be overridden with this. You can even use the model property names in the where clause anonymous object and SimpleCRUD will generate a proper where clause to match the database based on the column attribute

- GUID (uniqueidentifier) primary keys are supported (autopopulates if no value is passed in)
- If no record is found the default value of the given type ( `default(T)` ) is returned.

Execute a query and map the results to a strongly typed List
------------------------------------------------------------
Expand Down