Updates referencesource to .NET 4.7
[mono-project.git] / mcs / class / referencesource / System.Web.Entity / System / Data / WebControls / EntityDataSourceChangedEventArgs.cs
blobb566079127615647312c1ac29aec684bb31f1524
1 //---------------------------------------------------------------------
2 // <copyright file="EntityDataSourceChangedEventArgs.cs" company="Microsoft">
3 // Copyright (c) Microsoft Corporation. All rights reserved.
4 // </copyright>
5 //
6 // @owner Microsoft
7 // @backupOwner objsdev
8 //---------------------------------------------------------------------
10 using System;
11 using System.Collections.Generic;
12 using System.Linq;
13 using System.Text;
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)
27 _context = context;
28 _entity = 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; }
47 public object Entity
49 get { return _entity; }
52 public ObjectContext Context
54 get { return _context; }