Skip to content

Instantly share code, notes, and snippets.

@pixlkid
Last active December 21, 2015 11:38
Show Gist options
  • Save pixlkid/6299734 to your computer and use it in GitHub Desktop.
Save pixlkid/6299734 to your computer and use it in GitHub Desktop.
sample context to set up connection to GP
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using gp.entity.objects;
namespace gp.entity.data
{
internal class Context : DbContext
{
public Context(string connectionString)
{
this.Database.Connection.ConnectionString = connectionString;
}
public DbSet<GL20000> GL20000 { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment