Last active
December 21, 2015 11:38
-
-
Save pixlkid/6299734 to your computer and use it in GitHub Desktop.
sample context to set up connection to GP
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.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