Blazor.Serilog.Sinks.SQLite 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Blazor.Serilog.Sinks.SQLite --version 1.0.0
                    
NuGet\Install-Package Blazor.Serilog.Sinks.SQLite -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Blazor.Serilog.Sinks.SQLite" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Blazor.Serilog.Sinks.SQLite" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Blazor.Serilog.Sinks.SQLite" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Blazor.Serilog.Sinks.SQLite --version 1.0.0
                    
#r "nuget: Blazor.Serilog.Sinks.SQLite, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#addin nuget:?package=Blazor.Serilog.Sinks.SQLite&version=1.0.0
                    
Install Blazor.Serilog.Sinks.SQLite as a Cake Addin
#tool nuget:?package=Blazor.Serilog.Sinks.SQLite&version=1.0.0
                    
Install Blazor.Serilog.Sinks.SQLite as a Cake Tool
private void CreateSqlTable(SQLiteConnection sqlConnection)
{
    var colDefs = "Id INTEGER PRIMARY KEY AUTOINCREMENT,";
    colDefs += "TimeStamp TEXT,";
    colDefs += "Level VARCHAR(10),";
    colDefs += "Exception TEXT,";
    colDefs += "Message TEXT,";
    colDefs += "Properties TEXT";
    colDefs += "MessageTemplate TEXT";
    colDefs += "LogEvent TEXT";
    colDefs += "UserName TEXT";
    colDefs += "ClientIP TEXT";
    colDefs += "ClientAgent TEXT";

    var sqlCreateText = $"CREATE TABLE IF NOT EXISTS {_tableName} ({colDefs})";

    var sqlCommand = new SQLiteCommand(sqlCreateText, sqlConnection);
    sqlCommand.ExecuteNonQuery();
}

private SQLiteCommand CreateSqlInsertCommand(SQLiteConnection connection)
{
    var sqlInsertText = "INSERT INTO {0} (Timestamp, Level, Exception, Message, Properties,MessageTemplate,LogEvent,UserName,ClientIP,ClientAgent)";
    sqlInsertText += " VALUES (@timeStamp, @level, @exception, @message, @properties,@messageTemplate,@logEvent,@userName,@clientIP,@clientAgent)";
    sqlInsertText = string.Format(sqlInsertText, _tableName);

    var sqlCommand = connection.CreateCommand();
    sqlCommand.CommandText = sqlInsertText;
    sqlCommand.CommandType = CommandType.Text;

    sqlCommand.Parameters.Add(new SQLiteParameter("@timeStamp", DbType.DateTime2));
    sqlCommand.Parameters.Add(new SQLiteParameter("@level", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@exception", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@message", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@properties", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@messageTemplate", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@logEvent", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@userName", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@clientIP", DbType.String));
    sqlCommand.Parameters.Add(new SQLiteParameter("@clientAgent", DbType.String));

    return sqlCommand;
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Blazor.Serilog.Sinks.SQLite:

Repository Stars
neozhu/CleanArchitectureWithBlazorServer
This is a repository for creating a Blazor Server dashboard application following the principles of Clean Architecture
Version Downloads Last updated
1.0.8 4,822 6 months ago
1.0.7 112 6 months ago
1.0.6 12,024 12/24/2023
1.0.5 152 12/24/2023
1.0.4 151 12/24/2023
1.0.3 226 12/24/2023
1.0.2 214 12/24/2023
1.0.1 177 12/24/2023
1.0.0 211 12/24/2023