projects

sql-query-profiler-sample-apps

Sample Applications

โญ Canonical โ€” this is the single source of truth for this project.

Overview

Field Value
Name sql-query-profiler-sample-apps
Tier ๐Ÿ“š Learning & Experiments
Description Sample Applications
Visibility ๐Ÿ”’ Private
Fork No
Last activity ย 
Status โœ… Archived
Original source Github
Original owner guneysus
Language C#
Type API (GraphQL)
Size Small
Idea Sample applications demonstrating SQL query profiler usage
Idea score 45
Impl score 55
Rating 49

๐Ÿ’ก Core Idea

Sample Applications

๐Ÿ” Code Snippet

using Microsoft.EntityFrameworkCore;
using Microsoft.AspNetCore.Mvc;

internal class Program
{
    private static void Main(string [] args)
    {
        var builder = WebApplication.CreateBuilder(args);

        var services = builder.Services;

        services.AddDbContextFactory<TodoContext>();

        services.AddGraphQLServer()
            .AddQueryType<Query>()
            .AddMutationType<Mutation>()
            .AddType<Todo>()
            .InitializeOnStartup()
            .AddProjections()
            .AddFiltering()
            .AddSorting()
            .DisableIntrospection(disable: false)
            ;

        services.AddEfCoreProfilerToolbar();

Archive Origins


โ† peview git-jump โ†’

Generated by scripts/generate.py ยท Back to index