Beispiel #1
0
        private static void ExtractSynonym(
            System.Data.DataRow row
            , ActiveQueryBuilder.Core.MetadataItem mi
            , int parentID
            , System.Data.DataTable tbl
            )
        {
            if (mi == null)
            {
                return;
            }

            ExtractItem(row, mi, parentID, tbl);
            {
                ActiveQueryBuilder.Core.MetadataObject m = mi as ActiveQueryBuilder.Core.MetadataObject;
                row["ReferencedObject"] = m.ReferencedObject?.NameFull;
                //
                for (int i = 0; i < m.ReferencedObjectName.Count; i++)
                {
                    ActiveQueryBuilder.Core.MetadataQualifiedNamePart x = m.ReferencedObjectName[i];
                    row["ReferencedObjectName"] += "["
                                                   + System.Enum.GetName(typeof(ActiveQueryBuilder.Core.MetadataType), x.Type)
                                                   + ":"
                                                   + x.Name
                                                   + "]"
                    ;
                }
            }
        }
Beispiel #2
0
 private static void ExtractSynonym(
     System.ComponentModel.BindingList <DataModel.MetadataItem> list,
     ActiveQueryBuilder.Core.MetadataItem mi,
     int parentID
     )
 {
     if (mi == null)
     {
         return;
     }
     var o = ExtractItem(list, mi, parentID);
     {
         ActiveQueryBuilder.Core.MetadataObject m = mi as ActiveQueryBuilder.Core.MetadataObject;
         o.ReferencedObject = m.ReferencedObject?.NameFull;
         //
         for (int i = 0; i < m.ReferencedObjectName.Count; i++)
         {
             ActiveQueryBuilder.Core.MetadataQualifiedNamePart x = m.ReferencedObjectName[i];
             o.ReferencedObjectName += "["
                                       + System.Enum.GetName(typeof(ActiveQueryBuilder.Core.MetadataType), x.Type)
                                       + ":"
                                       + x.Name
                                       + "]"
             ;
         }
     }
 }
Beispiel #3
0
 private static void ExtractTable(
     System.ComponentModel.BindingList <DataModel.MetadataItem> list,
     ActiveQueryBuilder.Core.MetadataItem mi,
     int parentID
     )
 {
     if (mi == null)
     {
         return;
     }
     var o = ExtractItem(list, mi, parentID);
     {
         ActiveQueryBuilder.Core.MetadataObject m = mi as ActiveQueryBuilder.Core.MetadataObject;
     }
 }
 private static void ExtractProcedure(
     System.Data.DataRow row
     , ActiveQueryBuilder.Core.MetadataItem mi
     , int parentID
     , System.Data.DataTable tbl
     )
 {
     if (mi == null)
     {
         return;
     }
     ExtractItem(row, mi, parentID, tbl);
     {
         ActiveQueryBuilder.Core.MetadataObject m = mi as ActiveQueryBuilder.Core.MetadataObject;
     }
 }