Ejemplo n.º 1
0
        /// <summary>
        /// Gets the MatchingDatabaseField.IsRequired from the given PropertyInfo.
        /// </summary>
        /// <param name="property"></param>
        /// <returns></returns>
        public static bool GetMatchingDatabaseFieldIsRequired(PropertyInfo property)
        {
            MatchingDatabaseField matchingDatabaseFieldAttribute = GetMatchingDatabaseFieldAttribute(property);

            return(matchingDatabaseFieldAttribute.IsRequired);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the MatchingDatabaseField.ColumnName from the given PropertyInfo.
        /// </summary>
        /// <param name="property"></param>
        /// <returns></returns>
        public static List <string> GetMatchingDatabaseFieldColumnNames(PropertyInfo property)
        {
            MatchingDatabaseField matchingDatabaseFieldAttribute = GetMatchingDatabaseFieldAttribute(property);

            return(matchingDatabaseFieldAttribute.ColumnNames);
        }