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; }
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); }