1 write to _owner
System.Web.Entity (1)
System\Data\WebControls\EntityDataSourceView.cs (1)
176
_owner
= owner;
84 references to _owner
System.Web.Entity (84)
System\Data\WebControls\EntityDataSourceView.cs (84)
200
var selectArgs = new EntityDataSourceSelectingEventArgs(
_owner
, arguments);
207
_disableUpdates =
_owner
.ValidateUpdatableConditions();
209
if (
_owner
.ValidateWrappable() || CanUpdate)
215
_owner
.ValidateWrappable() ? WrapperCollectionManager.ManagerMode.FlattenedEntities : WrapperCollectionManager.ManagerMode.UpdateCache);
218
if (!string.IsNullOrEmpty(
_owner
.Select))
222
else if (!string.IsNullOrEmpty(
_owner
.CommandText))
251
_owner
.OrderBy,
_owner
.AutoGenerateOrderByClause,
_owner
.OrderByParameters,
253
_owner
);
258
_owner
.CommandText,
_owner
.GetCommandParameters(),
260
_owner
.Select,
_owner
.GroupBy,
_owner
.GetSelectParameters(),
262
_owner
.Include);
312
_owner
.OrderBy,
_owner
.AutoGenerateOrderByClause,
_owner
.OrderByParameters,
314
_owner
);
319
_owner
.CommandText,
_owner
.GetCommandParameters(),
321
_owner
.Select,
_owner
.GroupBy,
_owner
.GetSelectParameters(),
323
_owner
.Include });
363
_owner
.EntityTypeFilter);
394
var checkEntitySet = wasQueryModified && !String.IsNullOrEmpty(
_owner
.EntitySetName) && (CanDelete || CanUpdate);
440
if (String.IsNullOrEmpty(
_owner
.EntityTypeFilter))
479
Context.AddObject(
_owner
.FQEntitySetName, entity);
512
UpdateEntity(originalEntityValues, values, modifiedEntityWrapper,
_owner
.UpdateParameters);
606
Context.AddObject(
_owner
.FQEntitySetName, entity); // Add/AcceptAllChanges because wrappers must contain attached entities
614
ConvertProperties(keys, entityWrapper.GetProperties(),
_owner
.DeleteParameters, entityValues);
616
ConvertProperties(oldValues, entityWrapper.GetProperties(),
_owner
.DeleteParameters, entityValues);
683
Context.AddObject(
_owner
.FQEntitySetName, entity);
685
CreateEntityForInsert(entityWrapper, values,
_owner
.InsertParameters);
709
Context.AddObject(
_owner
.EntitySetName, changingArgs.Entity);
738
if (
_owner
.ValidateWrappable())
746
string where =
_owner
.Where;
747
_owner
.Where = "0=1";
758
else if (
_owner
.HasIdentity())
772
_owner
.Where = where;
785
if (!
_owner
.AutoGenerateWhereClause)
787
whereClause =
_owner
.Where;
788
whereParameters =
_owner
.GetWhereParameters();
793
IOrderedDictionary paramValues =
_owner
.WhereParameters.GetValues(
_owner
.HttpContext,
_owner
);
805
if (!String.IsNullOrEmpty(
_owner
.EntitySetName) && !EntityDataSourceUtil.PropertyIsOnEntity(propertyName, _collectionManager.FlattenedEntityCollection, EntitySet, null))
860
WebControlParameterProxy wcParameter = new WebControlParameterProxy(propertyName, referenceParameters,
_owner
);
908
IOrderedDictionary referenceValues = referenceParameters.GetValues(
_owner
.HttpContext,
_owner
);
938
EntityDataSourceUtil.ValidateWebControlParameterNames(entityWrapper, insertParameters,
_owner
);
950
EntityDataSourceUtil.ValidateWebControlParameterNames(entityWrapper, updateParameters,
_owner
);
984
!
_owner
.StoreOriginalValuesInViewState ||
1117
else if (null !=
_owner
.ContextType || !String.IsNullOrEmpty(
_owner
.ContextTypeName))
1120
if (null !=
_owner
.ContextType)
1122
contextType =
_owner
.ContextType;
1126
contextType = System.Web.Compilation.BuildManager.GetType(
_owner
.ContextTypeName, /*throw on error*/ true);
1142
if (!String.IsNullOrEmpty(
_owner
.DefaultContainerName) &&
1143
!String.IsNullOrEmpty(
_owner
.ConnectionString))
1145
_ctx = new ObjectContext(
_owner
.ConnectionString);
1175
else if (!String.IsNullOrEmpty(
_owner
.DefaultContainerName) &&
1176
null !=
_owner
.Connection)
1178
_ctx = new ObjectContext(
_owner
.Connection);
1185
_ctx.DefaultContainerName =
_owner
.DefaultContainerName;
1236
get { return
_owner
.EnableInsert && !_disableUpdates; }
1240
get { return
_owner
.EnableUpdate && !_disableUpdates; }
1244
get { return
_owner
.EnableDelete && !_disableUpdates; }
1248
get { return
_owner
.AutoSort; }
1252
get { return
_owner
.AutoPage; }
1256
get { return
_owner
.AutoPage; }
1480
if (!String.IsNullOrEmpty(
_owner
.EntityTypeFilter))
1482
cSpaceType = (EntityType)Context.MetadataWorkspace.GetType(
_owner
.EntityTypeFilter, EntitySet.ElementType.NamespaceName, DataSpace.CSpace);
1485
throw new InvalidOperationException(Strings.EntityDataSourceView_FilteredEntityTypeMustBeDerivableFromEntitySet(
_owner
.EntityTypeFilter,
_owner
.EntitySetName));
1533
if (String.IsNullOrEmpty(
_owner
.EntitySetName))
1537
return EntityContainer.GetEntitySetByName(
_owner
.EntitySetName, /*ignoreCase*/ false);
1568
EntitySet entitySet = entityContainer.GetEntitySetByName(
_owner
.EntitySetName, false);
1580
if (!string.IsNullOrEmpty(
_owner
.DefaultContainerName))
1582
return
_owner
.DefaultContainerName;
1643
if (!entityContainer.TryGetEntitySetByName(
_owner
.EntitySetName, /*ignoreCase*/false, out entitySet))
1645
throw new InvalidOperationException(Strings.EntityDataSourceView_EntitySetDoesNotExistOnTheContainer(
_owner
.EntitySetName));