Example #1
0
        /// <summary>
        ///     Check if a property is indexed
        /// </summary>
        /// <param name="propertyName"></param>
        /// <returns></returns>
        public bool IsIndexed(string propertyName)
        {
            if (propertyName == PrimaryKeyField.Name)
            {
                return(true);
            }

            if (IndexFields.Any(f => f.Name == propertyName))
            {
                return(true);
            }

            if (UniqueKeyFields.Any(f => f.Name == propertyName))
            {
                return(true);
            }

            if (ListFields.Any(f => f.Name == propertyName))
            {
                return(true);
            }


            return(false);
        }