/// <summary> /// Gets the data. /// </summary> /// <param name="dbAccess">The DB access.</param> /// <param name="cmd">The command.</param> /// <param name="dbTransaction">The database transaction.</param> /// <returns> /// The <see cref="DataTable" /> . /// </returns> public static DataTable GetData( [NotNull] this IDbAccess dbAccess, [NotNull] IDbCommand cmd, [CanBeNull] IDbTransaction dbTransaction = null) { CodeContracts.VerifyNotNull(dbAccess, "dbAccess"); CodeContracts.VerifyNotNull(cmd, "cmd"); return(dbAccess.GetDataSet(cmd, dbTransaction).Tables[0]); }