Example #1
0
 protected void OnContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     if (data == null)
     {
         data = new RoomReservationEntities();
     }
     e.Context = data;
 }
Example #2
0
 protected void EntityDataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     e.Context = new TpsDbContext().ToObjectContext();
 }
        protected void EntityDataSourceCari_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
        {
            var db = new akademik_dbEntities();

            e.Context = (db as IObjectContextAdapter).ObjectContext;
        }
Example #4
0
 protected void UsersDataSource_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     // This is required to make the newer Entity Framework work with the old ASP.NET WebForms controls
     e.Context = new TpsDbContext().ToObjectContext();
 }
Example #5
0
 protected void EntityDataSource1_ContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     WriteMessage();
 }
 protected void OnContextCreating(object sender, EntityDataSourceContextCreatingEventArgs e)
 {
     //var data = new RoomReservationEntities();
     //e.Context = (System.Data.Objects.ObjectContext)(data as IObjectContextAdapter).ObjectContext;
 }