예제 #1
0
        private void createQuery()
        {
            // Console.WriteLine(typeof(StardogConnection.StardogQuery).AssemblyQualifiedName);
            Type queryType = Type.GetType(TypeOfQuerry);

            TheQuerry = Activator.CreateInstance(queryType) as IQuerry;
            TheQuerry.SetQuerry(StoredProcText);
        }
예제 #2
0
 private void createQuery()
 {
     lock (theQueryLock)
     {
         //Cause the exception to be thrown here if the type doesn't exist, for clarity sake.
         Type queryType = Type.GetType(TypeOfQuerry, true);
         TheQuerry = Activator.CreateInstance(queryType) as IQuerry;
         if (TheQuerry == null)
         {
             throw new InvalidOperationException("The Query is not of a valid type");
         }
         TheQuerry.SetTarget(Server, DataStore);
         TheQuerry.SetQuerry(StoredProcText);
     }
 }