/// <summary>
        /// 
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="connection"></param>
        /// <param name="transaction"></param>
        /// <returns></returns>
        public ICollection<long> Get(RoleAuthorizationsCriteria criteria, DbConnection connection, DbTransaction transaction)
        {
            var reader = default(KandaDbDataReader);

            try
            {
                reader = RoleAuthorizationsGateway.Select(criteria, connection, transaction);

                var authorizations = new Collection<long>();
                while (reader.Read()) { authorizations.Add(reader.GetInt64(@"AuthorizationID")); }

                return authorizations;
            }
            finally
            {
                if (reader != null) { reader.Close(); }
            }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="criteria"></param>
        /// <param name="connection"></param>
        /// <param name="transaction"></param>
        /// <returns></returns>
        internal bool Delete(RoleAuthorizationsCriteria criteria, DbConnection connection, DbTransaction transaction)
        {
            var deleted = RoleAuthorizationsGateway.Delete(criteria, connection, transaction);

            return (0 <= deleted);
        }