1 //---------------------------------------------------------------------
2 // <copyright file="EntityDataSourceChangedEventArgs.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
7 // @backupOwner objsdev
8 //---------------------------------------------------------------------
11 using System.Collections.Generic;
14 using System.Data.Objects;
16 namespace System.Web.UI.WebControls
18 public class EntityDataSourceChangedEventArgs : EventArgs
20 private readonly ObjectContext _context;
21 private readonly Exception _exception = null;
22 private bool _exceptionHandled = false;
23 private readonly object _entity = null;
25 internal EntityDataSourceChangedEventArgs(ObjectContext context, object entity)
31 internal EntityDataSourceChangedEventArgs(Exception exception)
33 _exception = exception;
36 public Exception Exception
38 get { return _exception; }
41 public bool ExceptionHandled
43 get { return _exceptionHandled; }
44 set { _exceptionHandled = value; }
49 get { return _entity; }
52 public ObjectContext Context
54 get { return _context; }