Jiri Cincura wrote: > On Mon, Jul 21, 2008 at 8:27 PM, Luis Madaleno | magnisoftR > <[EMAIL PROTECTED]> wrote: >> I have just a little question. Why doesn't the "|DataDirectory|" placeholder >> work in the connection string? > > Well, because it's not handled by provider at all. :) > > I have never used it before, and I don't even remember anybody asking > about it in list. Do you know any documentation about this? I have no > problem to implement it, but I need to see some behavioral > description, preferable from msdn etc.
It was introduced in ADO.NET 2.0. I think it'd definitely be a nice-to-have. Documented here (about half-way down): http://msdn.microsoft.com/en-us/library/ms254500.aspx You can see how it's implemented by SqlClient using reflector on the System.Data.Common.DbConnectionOptions class's ExpandDataDirectory method. I believe the main point is that it uses the AppDomain.CurrentDomain.GetData("DataDirectory") method call to set it up correctly based on the kind of application (that is, ASP.NET sets that value to be the App_Data folder automatically). Dean. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Firebird-net-provider mailing list Firebird-net-provider@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/firebird-net-provider