1 instantiation of DataContext
System.Data.Linq (1)
DataContext.cs (1)
635
return new
DataContext
(this);
92 references to DataContext
System.Data.Linq (74)
ChangeConflicts.cs (6)
122
private
DataContext
context;
123
private
DataContext
refreshContext;
125
internal ChangeConflictSession(
DataContext
context) {
129
internal
DataContext
Context {
133
internal
DataContext
RefreshContext {
225
DataContext
ctxt = this.session.RefreshContext;
ChangeDirector.cs (3)
35
internal static ChangeDirector CreateChangeDirector(
DataContext
context) {
47
DataContext
context;
51
internal StandardChangeDirector(
DataContext
context) {
ChangeProcessor.cs (2)
36
DataContext
context;
43
internal ChangeProcessor(CommonDataServices services,
DataContext
context) {
CompiledQuery.cs (33)
35
public static Func<TArg0, TResult> Compile<TArg0, TResult>(Expression<Func<TArg0, TResult>> query) where TArg0 :
DataContext
{
48
public static Func<TArg0, TArg1, TResult> Compile<TArg0, TArg1, TResult>(Expression<Func<TArg0, TArg1, TResult>> query) where TArg0 :
DataContext
{
61
public static Func<TArg0, TArg1, TArg2, TResult> Compile<TArg0, TArg1, TArg2, TResult>(Expression<Func<TArg0, TArg1, TArg2, TResult>> query) where TArg0 :
DataContext
{
74
public static Func<TArg0, TArg1, TArg2, TArg3, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TResult>> query) where TArg0 :
DataContext
{
87
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>> query) where TArg0 :
DataContext
{
100
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>> query) where TArg0 :
DataContext
{
113
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>> query) where TArg0 :
DataContext
{
126
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>> query) where TArg0 :
DataContext
{
139
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>> query) where TArg0 :
DataContext
{
152
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>> query) where TArg0 :
DataContext
{
165
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>> query) where TArg0 :
DataContext
{
178
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>> query) where TArg0 :
DataContext
{
191
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>> query) where TArg0 :
DataContext
{
204
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>> query) where TArg0 :
DataContext
{
217
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>> query) where TArg0 :
DataContext
{
230
public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>(Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>> query) where TArg0 :
DataContext
{
246
private TResult Invoke<TArg0, TResult>(TArg0 arg0) where TArg0 :
DataContext
{
250
private TResult Invoke<TArg0, TArg1, TResult>(TArg0 arg0, TArg1 arg1) where TArg0 :
DataContext
{
254
private TResult Invoke<TArg0, TArg1, TArg2, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2) where TArg0 :
DataContext
{
258
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3) where TArg0 :
DataContext
{
262
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4) where TArg0 :
DataContext
{
266
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5) where TArg0 :
DataContext
{
270
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6) where TArg0 :
DataContext
{
274
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7) where TArg0 :
DataContext
{
278
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8) where TArg0 :
DataContext
{
282
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9) where TArg0 :
DataContext
{
286
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10) where TArg0 :
DataContext
{
290
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11) where TArg0 :
DataContext
{
294
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12) where TArg0 :
DataContext
{
298
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12, TArg13 arg13) where TArg0 :
DataContext
{
302
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12, TArg13 arg13, TArg14 arg14) where TArg0 :
DataContext
{
306
private TResult Invoke<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TArg10, TArg11, TArg12, TArg13, TArg14, TArg15, TResult>(TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, TArg4 arg4, TArg5 arg5, TArg6 arg6, TArg7 arg7, TArg8 arg8, TArg9 arg9, TArg10 arg10, TArg11 arg11, TArg12 arg12, TArg13 arg13, TArg14 arg14, TArg15 arg15) where TArg0 :
DataContext
{
310
private object ExecuteQuery(
DataContext
context, object[] args) {
DataBindingList.cs (1)
12
internal static IBindingList Create<T>(
DataContext
context, IEnumerable<T> sequence) {
DataContext.cs (8)
115
internal DataContext(
DataContext
context) {
604
DataContext
refreshContext = this.CreateRefreshContext();
633
internal
DataContext
CreateRefreshContext() {
753
_miExecuteQuery = typeof(
DataContext
).GetMethods().Single(m => m.Name == "ExecuteQuery" && m.GetParameters().Length == 2);
1007
DataContext
Context { get; }
1108
DataContext
context;
1111
internal Table(
DataContext
context, MetaTable metaTable) {
1120
public
DataContext
Context {
DataQuery.cs (2)
16
DataContext
context;
20
public DataQuery(
DataContext
context, Expression expression) {
DataServices.cs (3)
16
DataContext
context;
24
internal CommonDataServices(
DataContext
context, MetaModel model) {
34
public
DataContext
Context {
Mapping\AttributedMetaModel.cs (3)
130
for (Type type = this.contextType; type != typeof(
DataContext
); type = type.BaseType) {
163
if (this.contextType != typeof(
DataContext
)) {
164
for (Type type = this.contextType; type != typeof(
DataContext
); type = type.BaseType) {
Mapping\MappedMetaModel.cs (2)
94
for (Type type = this.contextType; type != typeof(
DataContext
); type = type.BaseType) {
130
if (this.contextType != typeof(
DataContext
)) {
Provider\IDataServices.cs (1)
12
DataContext
Context { get; }
SqlClient\Query\Funcletizer.cs (1)
120
typeof(
DataContext
).IsAssignableFrom(expression.Type)) {
SqlClient\Query\QueryConverter.cs (3)
1849
DataContext
dc = value.Value as
DataContext
;
1901
else if (typeof(
DataContext
).IsAssignableFrom(mc.Method.DeclaringType)) {
SqlClient\Query\Translator.cs (1)
148
internal static Expression TranslateAssociation(
DataContext
context, MetaAssociation association, Expression otherSource, Expression[] keyValues, Expression thisInstance) {
SqlClient\SqlProvider.cs (5)
1146
if (mc != null && typeof(
DataContext
).IsAssignableFrom(mc.Method.DeclaringType)) {
1360
else if (mce.Method.DeclaringType == typeof(
DataContext
)) {
1365
else if (mce.Method.DeclaringType.IsSubclassOf(typeof(
DataContext
))) {
1918
private
DataContext
context;
1921
internal SingleResult(IEnumerable<T> enumerable, ExecuteResult executeResult,
DataContext
context) {
System.Web.DynamicData (7)
DynamicData\DynamicDataExtensions.cs (2)
262
var
context = e.Result as
DataContext
;
DynamicData\ModelProviders\DLinqDataModelProvider.cs (4)
19
DataContext
context = (
DataContext
)contextInstance ?? (
DataContext
)CreateContext();
37
private LinqMetaTable GetLinqTable(
DataContext
context, Type entityType) {
DynamicData\ModelProviders\SchemaCreator.cs (1)
33
return IsValidType<
DataContext
>(contextType);
System.Web.Extensions (11)
UI\WebControls\ILinqToSql.cs (2)
18
void Refresh(
DataContext
dataContext, RefreshMode mode, object entity);
22
void SubmitChanges(
DataContext
dataContext);
UI\WebControls\LinqDataSourceView.cs (7)
451
DataContext
dlinqContext = contextData.Context as
DataContext
;
466
_linqToSql.SubmitChanges((
DataContext
)dataContext);
627
DataContext
context = ((ITable)table).Context;
674
_linqToSql.SubmitChanges((
DataContext
)dataContext);
889
_linqToSql.SubmitChanges((
DataContext
)dataContext);
921
if (!selecting && !typeof(
DataContext
).IsAssignableFrom(contextType)) {
UI\WebControls\LinqToSqlWrapper.cs (2)
25
public void Refresh(
DataContext
dataContext, RefreshMode mode, object entity) {
33
public void SubmitChanges(
DataContext
dataContext) {