protected void eds_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
        {
            var pubs = new PubsEntities();

            e.Context = ((IObjectContextAdapter)pubs).ObjectContext;
        }
Example #2
0
 protected void EmployeesEntityDataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     e.Context = (db as IObjectContextAdapter).ObjectContext;
 }
Example #3
0
 protected void EntityDataSource1_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     WriteMessage("EntitiDataSource1_ContextrCreating");
 }
Example #4
0
 protected void DataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     var context = new IOnExContext();
     e.Context = ((IObjectContextAdapter)context).ObjectContext;
 }
Example #5
0
 protected void WordContextEntityDataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     var db = new WordContext();
     e.Context = (db as IObjectContextAdapter).ObjectContext;
 }
Example #6
0
 protected void StocksEntityDataSource_OnContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     var db = new FatDataContext();
     e.Context = (db as IObjectContextAdapter).ObjectContext;
 }