/// <summary> /// New connection string for single user mode. /// </summary> /// <param name="databaseLocation"></param> /// <param name="logicalName"></param> /// <returns></returns> public static UoeDatabaseConnection NewSingleUserConnection(UoeDatabaseLocation databaseLocation, string logicalName = null) { return(new UoeDatabaseConnection { DatabaseLocation = databaseLocation, LogicalName = logicalName, SingleUser = true }); }
/// <summary> /// New connection string for multi user mode. /// </summary> /// <param name="databaseLocation"></param> /// <param name="logicalName"></param> /// <param name="host"></param> /// <param name="service"></param> /// <returns></returns> public static UoeDatabaseConnection NewMultiUserConnection(UoeDatabaseLocation databaseLocation, string logicalName = null, string host = null, string service = null) { return(new UoeDatabaseConnection { DatabaseLocation = databaseLocation, LogicalName = logicalName, HostName = host, Service = service }); }