예제 #1
0
 public static BaseSPGenerator GetSpGeneratorObject(string nodeText)
 {
     BaseSPGenerator spGeneraror = null;
     switch (nodeText)
     {
         case Constants.insertTreeNodeText:
             spGeneraror = new InsertSPGenerator();
             break;
         case Constants.updateTreeNodeText:
             spGeneraror = new UpdateSPGenerator();
             break;
     }
     return spGeneraror;
 }
예제 #2
0
        public static BaseSPGenerator GetSpGeneratorObject(string nodeText)
        {
            BaseSPGenerator spGeneraror = null;

            switch (nodeText)
            {
            case Constants.insertTreeNodeText:
                spGeneraror = new InsertSPGenerator();
                break;

            case Constants.updateTreeNodeText:
                spGeneraror = new UpdateSPGenerator();
                break;
            }
            return(spGeneraror);
        }