Example #1
0
 /// <summary>
 /// <para>By default queries the table matching the class name asynchronously</para>
 /// <para>-Table name can be overridden by adding an attribute on your class [Table("YourTableName")]</para>
 /// <para>Returns a list of all entities</para>
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="cnn"></param>
 /// <returns>Gets a list of all entities</returns>
 public static Task <IEnumerable <T> > AllAsync <T>(this IDbConnection cnn)
 {
     return(cnn.AllAsync <T>(new { }));
 }