Skip to content

Instantly share code, notes, and snippets.

💭
Software Development is my passion!

Carlos dos Santos carloscds

💭
Software Development is my passion!
Block or report user

Report or block carloscds

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Customers.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LazyLoading
{
public class Customers
{
[Key]
View Orders.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
namespace LazyLoading
{
public class Orders
{
[Key]
public int OrderID {get; set;}
View Contexto.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.SqlServer;
namespace LazyLoading
{
public class Contexto : DbContext
View Program.cs
using System;
namespace LazyLoading
{
class Program
{
static void Main(string[] args)
{
var db = new Contexto();
View Contexto.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Data.SqlClient;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.SqlServer;
using Microsoft.EntityFrameworkCore.Proxies;
namespace LazyLoading
{
View Contexo.cs
using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFAsNoTracking
{
public class Contexto : DbContext
View Dados.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFAsNoTracking
{
public class Dados
{
View Program.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFAsNoTracking
{
class Program
{
View Program2.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFAsNoTracking
{
class Program
{
View Dados.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFAsNoTracking
{
public class Dados
{
You can’t perform that action at this time.