This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ConnectionStrings": { | |
"SampleAppDbContext": "Data Source=DESKTOP-HC36QP0;Initial Catalog=GraphQLSampleApp;Integrated Security=True;" | |
}, | |
"Logging": { | |
"LogLevel": { | |
"Default": "Information", | |
"Microsoft": "Warning", | |
"Microsoft.Hosting.Lifetime": "Information" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQLSampleApp.DataAccess.Entity; | |
using HotChocolate; | |
using HotChocolate.Execution; | |
using HotChocolate.Subscriptions; | |
using HotChocolate.Types; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQLSampleApp.DataAccess.DAO; | |
using GraphQLSampleApp.DataAccess.Entity; | |
using HotChocolate; | |
using HotChocolate.Subscriptions; | |
using Microsoft.AspNetCore.Components; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQLSampleApp.DataAccess.DAO; | |
using GraphQLSampleApp.DataAccess.Entity; | |
using HotChocolate; | |
using HotChocolate.Subscriptions; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace GraphQLSampleApp.DataAccess | |
{ | |
public class Query |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQLSampleApp.DataAccess.Entity; | |
using Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace GraphQLSampleApp.DataAccess.DAO | |
{ | |
public class EmployeeRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQLSampleApp.DataAccess.Entity; | |
using Microsoft.EntityFrameworkCore; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace GraphQLSampleApp.DataAccess.DAO | |
{ | |
public class DepartmentRepository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.EntityFrameworkCore; | |
namespace GraphQLSampleApp.DataAccess.Entity | |
{ | |
public class SampleAppDbContext : DbContext | |
{ | |
public SampleAppDbContext(DbContextOptions<SampleAppDbContext> options) : base(options) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace GraphQLSampleApp.DataAccess.Entity | |
{ | |
public class Employee | |
{ | |
[Key] | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace GraphQLSampleApp.DataAccess.Entity | |
{ | |
public class Department | |
{ | |
[Key] | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using GraphQLSampleApp.DataAccess; | |
using GraphQLSampleApp.DataAccess.DAO; | |
using GraphQLSampleApp.DataAccess.Entity; | |
using HotChocolate; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.AspNetCore.HttpsPolicy; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.EntityFrameworkCore; | |
using Microsoft.Extensions.Configuration; |