Example #1
0
 public Repository(IOnExContext dbContext)
 {
     db = dbContext;
 }
Example #2
0
 protected void DataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     var context = new IOnExContext();
     e.Context = ((IObjectContextAdapter)context).ObjectContext;
 }
Example #3
0
 public Repository()
 {
     db = new IOnExContext();
 }