{ "cells": [ { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "连接到 SQLite 数据库\n", "============================== " ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "连接到 SQLite 数据库,并操作数据。注意:此功能在 Microsoft.DotNet.Interactive.ExtensionLab 扩展库中,要先引用 Nuget 包。" ] }, { "attachments": {}, "cell_type": "markdown", "metadata": {}, "source": [ "## 设置Nuget包源" ] }, { "cell_type": "code", "execution_count": 2, "metadata": { "dotnet_interactive": { "language": "csharp" }, "polyglot_notebook": { "kernelName": "csharp" } }, "outputs": [ { "data": { "text/html": [ "
#!linqify
.The #!linqify
magic command replaces a Microsoft.Data.Analysis.DataFrame
variable with a generated, strongly-typed data frame, allowing the use of LINQ operations over the contained data.
This extension generates Sequence diagrams from csharp code using Mermaid kernel.
\r\n", "#!inspect
magic command.The #!inspect
magic command allows you to see the C# decompilation, IL, and JIT Asm for the code in a C# cell.
#!record
magic command to keep a transcript of the code you run.Once you enable transcripts using #!record
, each code submission (including re-running cells) is recorded in the specified file. The JSON format used is the same format recognized by the .NET Interactive stdio
and http
APIs and can be used to replay an interactive session via automation.
This extension adds support for connecting to SQLite databases using the #!connect sqlite
magic command. For more information, run a cell using the #!sql
magic command.
Id | Name | Age |
1 | 张三 | 66 |
2 | 李四 | 55 |