Run Code Against a Real Database on dotnetfiddle.net

Most devs use dotnetfiddle.net for quick syntax checks. Turns out it can also run code against a real database - no connection string therapy required. dotnetfiddle's Database Template gives you a pre-wired DB environment right in the browser. You pick a template, get a seeded database, and write EF or raw SQL like you would locally - minus the 20 minutes of setup and existential dread. Microsoft added EF support to fiddle back when "just spin up a SQL Server locally" was still a perfectly reasonable thing to say. --- var pending = db.Tasks   .Where(t => !t.Done)   .ToList(); foreach (var t in pending) Console.WriteLine($"Still pending: {t.Name}"); --- Your to-do list has never looked so queryable. Try it yourself (no setup required): https://lnkd.in/eF9FDA3Z #dotnet #csharp #programming #entityframework

  • No alternative text description for this image

To view or add a comment, sign in

Explore content categories