Ejemplo n.º 1
0
        // ===============================================================================
        //                                                                   Name Handling
        //                                                                   =============
        public bool HasFlexibleName(String flexibleName)
        {
            String key = RemoveQuoteIfExists(flexibleName.ToLower());

            if (DbNamePropertyNameKeyToLowerMap.containsKey(key))
            {
                return(true);
            }
            if (PropertyNameDbNameKeyToLowerMap.containsKey(key))
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 2
0
        public String FindPropertyName(String flexibleName)
        {
            String key = RemoveQuoteIfExists(flexibleName.ToLower());

            if (DbNamePropertyNameKeyToLowerMap.containsKey(key))
            {
                return(DbNamePropertyNameKeyToLowerMap.get(key));
            }
            if (PropertyNameDbNameKeyToLowerMap.containsKey(key))
            {
                String dbNameToLower = PropertyNameDbNameKeyToLowerMap.get(key).ToLower();
                if (DbNamePropertyNameKeyToLowerMap.containsKey(dbNameToLower))
                {
                    return(DbNamePropertyNameKeyToLowerMap.get(dbNameToLower));
                }
            }
            String msg = "Not found object by the flexible name: flexibleName=" + flexibleName;

            throw new SystemException(msg);
        }