/// <summary>
        /// By default queries the table matching the class name.
        /// This uses your raw SQL so be careful to not create SQL injection holes.
        /// </summary>
        /// <typeparam name="T"></typeparam>
        /// <param name="conditions"></param>
        /// <returns></returns>
        public int RecordCount <T>(string conditions = "", object parameters = null)
        {
            SetSimpleCRUD();

            int ret = 0;

            using (var conn = new SqlConnection(_connectionString))
            {
                conn.Open();
                ret = _simpleCRUD.RecordCount <T>(conn, conditions, parameters);
                conn.Close();
            }
            return(ret);
        }
 public virtual int RecordCount(object whereConditions, IDbTransaction transaction = null, int?commandTimeout = null)
 {
     return(SimpleCRUD.RecordCount <TModel>(_connection, whereConditions, transaction, commandTimeout));
 }
 public virtual int RecordCount(string conditions = "", object parameters = null, IDbTransaction transaction = null, int?commandTimeout = null)
 {
     return(SimpleCRUD.RecordCount <TModel>(_connection, conditions, parameters, transaction, commandTimeout));
 }