LinqPad基本使用
LinqPad
The .NET Programmer’s Playground(.net开发的乐园)
主要作用:
- 快速开发(小例子、新库测试、Demo等)
- 快速数据库链接(EF core+LinqToDB)
- 丰富的结果展示(支持富输出(层级||图片||e-Chart||Tree||Img等))
- 收费软件(死贵),自己找破解版. ----不是破解版基本没法用
界面

示例1:富输出+层级演示
var student = new { Id=1, Name="张三", Age=35, Photo = Util.Image("https://img0.baidu.com/it/u=791342862,4234197223&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=231"), Info = new { School="厚大法考", OtherName="法外狂徒", Location="Bilibili" } }; student.Dump();

示例2:EF数据库链接

数据更新

示例3:LinqToDB新增数据更新数据
新增或更新

示例4:创建简单的Asp.netCore服务


var app=WebApplication.Create(); app.MapGet("/", async () => { await Task.Delay(3000); return new Person() {Name="张三", Location="背景",age=10}; }); app.Run(); class Person { public string Name { get; set; } public string Location { get; set; } public int age { get; set; } }
网页访问:http://localhost:5000 || https://localhost:5001

浙公网安备 33010602011771号