예제 #1
0
 protected void EntityDataSource_ContextCreated(object sender, EntityDataSourceContextCreatedEventArgs e)
 {
     e.Context.Connection.Open();
     e.Context.Connection.BeginTransaction(System.Data.IsolationLevel.ReadUncommitted);
 }
예제 #2
0
 protected void EntityDataSourceLinks_ContextCreated(object sender, EntityDataSourceContextCreatedEventArgs e)
 {
     // force loading of all metadata
     //e.Context.MetadataWorkspace.LoadFromAssembly(System.Reflection.Assembly.GetAssembly(e.Context.GetType()));
 }
예제 #3
0
 protected void EntityDataSource1_ContextCreated(object sender, EntityDataSourceContextCreatedEventArgs e)
 {
     var c = e.Context;
 }