Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Re: Problem with Firebird 5 Embedded and dotnet

16 views
Skip to first unread message

Norbert Saint Georges

unread,
Sep 10, 2024, 8:28:18 AM9/10/24
to firebird...@googlegroups.com
> ----------------------- code --------------------------
> protected override void OnConfiguring(DbContextOptionsBuilder
> optionsBuilder)
> {
> // Füge den Firebird-Pfad zur PATH-Umgebungsvariablen hinzu
> var firebirdPath =
> Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Firebird");
> Environment.SetEnvironmentVariable("PATH", firebirdPath + ";" +
> Environment.GetEnvironmentVariable("PATH"));
>
> // Verzeichnis erstellen, falls es nicht existiert
> string databaseDirectory = @"C:\ProgramData\Emil";
> if (!Directory.Exists(databaseDirectory))
> {
> Directory.CreateDirectory(databaseDirectory);
> }
>
> string databaseFilePath = @"C:\ProgramData\Emil\Emil-database.fdb";
>
> // Verwende fbclient.dll und keinen Verweis auf fbembed.dll
>
> optionsBuilder.UseFirebird($@"ServerType=1;

client library=fbclient.dll;
or then same
clientlibrary=fbclient.dll;

>Database={databaseFilePath};User=SYSDBA;
Password=not_used;
>ConnectionTimeout=30");
> }
>

--
Norbert Saint Georges
http://tetrasys.fi

Mijarena “Mijarena” P.

unread,
Sep 10, 2024, 12:43:25 PM9/10/24
to firebird-support
Thanks, that solved it.
:)

Greetings
mijarena
Reply all
Reply to author
Forward
0 new messages