Exemple #1
0
 /// <summary>
 /// Creates a new DBEngineHelper object using the provided factory.
 /// </summary>
 /// <param name="factory">The factory to be use this object.</param>
 /// <returns>A new DBEngineHelper.</returns>
 public static DBEngineHelper Instance(DbProviderFactory factory)
 {
     if (instance == null)
     {
         instance = new DBEngineHelper(factory);
     }
     return((DBEngineHelper)instance);
 }
Exemple #2
0
 /// <summary>
 /// Creates a new DBEngineHelper object using the provided factory.
 /// </summary>
 /// <param name="factory">The factory to be use this object.</param>
 /// <returns>A new DBEngineHelper.</returns>
 public static DBEngineHelper Instance(DbProviderFactory factory)
 {
     if (instance == null)
     {
         instance = new DBEngineHelper(factory);
     }
     return (DBEngineHelper)instance;
 }
Exemple #3
0
 /// <summary>
 /// Creates a new Workspace object.
 /// </summary>
 /// <param name="factoryName">The name of the factory to by use by this WorkspaceHelper object (the name most exist on the configuration xml file).</param>
 /// <returns>The new WorkspaceHelper object.</returns>
 public static WorkspaceHelper CreateWorkspace(string factoryName)
 {
     return(DBEngineHelper.CreateWorkspace(string.Empty, factoryName));
 }