1 //---------------------------------------------------------------------
2 // <copyright file="EntityDataSourceSelectedEventArgs.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;
15 using System.Collections;
17 namespace System.Web.UI.WebControls
19 public class EntityDataSourceSelectedEventArgs : EventArgs
21 private readonly ObjectContext _context;
22 private readonly Exception _exception = null;
23 private bool _exceptionHandled = false;
24 private readonly IEnumerable _results = null;
25 private readonly int _totalRowCount = 0;
26 private readonly DataSourceSelectArguments _selectArguments;
28 internal EntityDataSourceSelectedEventArgs(ObjectContext context,
31 DataSourceSelectArguments selectArgs)
35 _totalRowCount = totalRowCount;
36 _selectArguments = selectArgs;
39 internal EntityDataSourceSelectedEventArgs(Exception exception)
41 _exception = exception;
44 public Exception Exception
46 get { return _exception; }
49 public bool ExceptionHandled
51 get { return _exceptionHandled; }
52 set { _exceptionHandled = value; }
55 public IEnumerable Results
57 get { return _results; }
60 public ObjectContext Context
62 get { return _context; }
65 public int TotalRowCount
67 get { return _totalRowCount; }
70 public DataSourceSelectArguments SelectArguments
72 get { return _selectArguments; }