Exemple #1
0
 public int GetFieldCount()
 {
     try
     {
         IReflectClass rClass = DataLayerCommon.ReflectClassForName(m_className);
         if (rClass != null)
         {
             string type1 = rClass.ToString();
             type1 = DataLayerCommon.PrimitiveType(type1);
             char[] arr = CommonValues.charArray;
             type1 = type1.Trim(arr);
             if (!CommonValues.IsPrimitive(type1) && !type1.Contains(BusinessConstants.DB4OBJECTS_SYS))
             {
                 IReflectField[] rFields = DataLayerCommon.GetDeclaredFieldsInHeirarchy(rClass);
                 return(rFields.Length);
             }
         }
         return(0);
     }
     catch (Exception oEx)
     {
         LoggingHelper.HandleException(oEx);
         return(0);
     }
 }
Exemple #2
0
 private static string ClassNameFor(string type)
 {
     try
     {
         if (type != "null")
         {
             type = DataLayerCommon.PrimitiveType(type);
             return(DataLayerCommon.RemoveGFromClassName(type));
         }
         return(null);
     }
     catch (Exception oEx)
     {
         LoggingHelper.HandleException(oEx);
         return(null);
     }
 }