Skip to content

Instantly share code, notes, and snippets.

@carloscds
Created December 2, 2018 20:34
Show Gist options
  • Save carloscds/f8307cf42a1067450c57ff9031bec3b2 to your computer and use it in GitHub Desktop.
Save carloscds/f8307cf42a1067450c57ff9031bec3b2 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace EFAsNoTracking
{
class Program
{
static void Main(string[] args)
{
var db = new Contexto();
var dados1 = new Dados(db);
var cat = dados1.GetCategory(1);
Console.WriteLine(cat.CategoryName);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment