82 references to EntityDataSourceUtil
System.Web.Entity (82)
System\Data\WebControls\EntityDataSourceColumn.cs (20)
40
EntityDataSourceUtil
.CheckArgumentNull(displayName, "displayName");
117
: base(
EntityDataSourceUtil
.CheckArgumentNull(memberPath, "memberPath").GetDescription())
197
EntityDataSourceUtil
.CheckArgumentNull(group, "group");
198
EntityDataSourceUtil
.CheckArgumentNull(keyMember, "keyMember");
199
Debug.Assert(
EntityDataSourceUtil
.IsScalar(keyMember.TypeUsage.EdmType), "Expected primitive or enum type for key members.");
203
this.clrType =
EntityDataSourceUtil
.GetMemberClrType(workspace, keyMember);
209
this.clrType =
EntityDataSourceUtil
.MakeNullable(clrType);
239
get { return
EntityDataSourceUtil
.IsScalar(keyMember.TypeUsage.EdmType); }
259
EntityDataSourceUtil
.CheckArgumentNull(group, "group");
260
EntityDataSourceUtil
.CheckArgumentNull(keyMember, "keyMember");
266
if (
EntityDataSourceUtil
.TryGetCorrespondingNavigationProperty(group.End.CorrespondingAssociationEndMember, out navigationProperty))
319
builder.Append(
EntityDataSourceUtil
.EntitySqlElementAlias);
321
builder.Append(
EntityDataSourceUtil
.CreateEntitySqlTypeIdentifier(this.Group.End.ParentAssociationSet.ElementType));
323
builder.Append(
EntityDataSourceUtil
.QuoteEntitySqlIdentifier(this.Group.End.CorrespondingAssociationEndMember.Name));
325
builder.Append(
EntityDataSourceUtil
.QuoteEntitySqlIdentifier(this.keyMember.Name));
337
: base(
EntityDataSourceUtil
.CheckArgumentNull(navigationProperty, "navigationProperty").Name)
339
EntityDataSourceUtil
.CheckArgumentNull(ocWorkspace, "ocWorkspace");
347
EntityDataSourceUtil
.CheckArgumentNull(clrToType, "clrToType");
381
string result =
EntityDataSourceUtil
.EntitySqlElementAlias + "." +
EntityDataSourceUtil
.QuoteEntitySqlIdentifier(this.navigationProperty.Name);
System\Data\WebControls\EntityDataSourceMemberPath.cs (9)
39
EntityDataSourceUtil
.CheckArgumentNull(ocWorkspace, "ocWorkspace");
40
EntityDataSourceUtil
.CheckArgumentNull(property, "property");
45
this.clrType =
EntityDataSourceUtil
.GetMemberClrType(ocWorkspace, property);
50
Type parentClrType =
EntityDataSourceUtil
.GetClrType(ocWorkspace, parentType);
52
this.propertyInfo =
EntityDataSourceUtil
.GetPropertyInfo(parentClrType, this.property.Name);
96
get { return
EntityDataSourceUtil
.IsScalar(this.property.TypeUsage.EdmType); }
138
object propertyValue =
EntityDataSourceUtil
.InitializeType(this.ClrType);
180
prefix =
EntityDataSourceUtil
.EntitySqlElementAlias;
183
string eSql = prefix + "." +
EntityDataSourceUtil
.QuoteEntitySqlIdentifier(this.property.Name);
System\Data\WebControls\EntityDataSourceReferenceGroup.cs (4)
37
EntityDataSourceUtil
.CheckArgumentNull(end, "end");
47
EntityDataSourceUtil
.CheckArgumentNull(entityType, "entityType");
68
EntityDataSourceUtil
.CheckArgumentNull(wrapper, "wrapper");
121
reference.EntityKey = new EntityKey(
EntityDataSourceUtil
.GetQualifiedEntitySetName(End.EntitySet), (IEnumerable<KeyValuePair<string, object>>)newKeyValues);
System\Data\WebControls\EntityDataSourceUtil.cs (9)
188
List<EdmType> types = new List<EdmType>(
EntityDataSourceUtil
.GetTypeAndSubtypesOf(entityType, ocItemCollection, /*includeAbstractTypes*/true));
698
EntityDataSourceUtil
.CheckArgumentNull(member, "member");
702
Debug.Assert(
EntityDataSourceUtil
.IsScalar(memberType) ||
708
if (
EntityDataSourceUtil
.IsScalar(memberType))
871
EntityDataSourceUtil
.CheckArgumentNull(entitySet, "entitySet");
1013
Type clrToType =
EntityDataSourceUtil
.GetMemberClrType(ocWorkspace, navigationProperty);
1025
bool isContained =
EntityDataSourceUtil
.IsContained(toEnd, out constraint);
1028
EntityType toType =
EntityDataSourceUtil
.GetEntityType(toEnd);
1029
Type clrToType =
EntityDataSourceUtil
.GetClrType(ocWorkspace, toType);
System\Data\WebControls\EntityDataSourceView.cs (18)
360
EntityDataSourceUtil
.
438
string entitySetIdentifier =
EntityDataSourceUtil
.CreateEntitySqlSetIdentifier(EntitySet);
452
queryExpressionBuilder.Append(
EntityDataSourceUtil
.CreateEntitySqlTypeIdentifier(EntityOSpaceType));
478
object entity =
EntityDataSourceUtil
.InitializeType(this.EntityClrType);
491
EntityDataSourceUtil
.ValidateKeyPropertyValuesExist(modifiedEntityWrapper, originalEntityValues);
494
EntityDataSourceUtil
.SetAllPropertiesWithVerification(modifiedEntityWrapper, originalEntityValues, /*overwrite*/true);
605
entity =
EntityDataSourceUtil
.InitializeType(this.EntityClrType);
619
EntityDataSourceUtil
.ValidateKeyPropertyValuesExist(entityWrapper, entityValues);
622
EntityDataSourceUtil
.SetAllPropertiesWithVerification(entityWrapper, entityValues, /*overwrite*/true);
682
object entity =
EntityDataSourceUtil
.InitializeType(this.EntityClrType);
805
if (!String.IsNullOrEmpty(_owner.EntitySetName) && !
EntityDataSourceUtil
.PropertyIsOnEntity(propertyName, _collectionManager.FlattenedEntityCollection, EntitySet, null))
821
whereClauseBuilder.Append(
EntityDataSourceUtil
.GetEntitySqlValueForColumnName(propertyName, _collectionManager.FlattenedEntityCollection));
847
propValue =
EntityDataSourceUtil
.ConvertType(propValue, propertyDescriptor.PropertyType, propertyDescriptor.Name);
938
EntityDataSourceUtil
.ValidateWebControlParameterNames(entityWrapper, insertParameters, _owner);
944
EntityDataSourceUtil
.SetAllPropertiesWithVerification(entityWrapper, entityValues, /*overwrite*/true);
950
EntityDataSourceUtil
.ValidateWebControlParameterNames(entityWrapper, updateParameters, _owner);
971
EntityDataSourceUtil
.SetAllPropertiesWithVerification(entityWrapper, allModifiedProperties, /*overwrite*/false);
1483
if (!
EntityDataSourceUtil
.IsTypeOrSubtypeOf(EntitySet.ElementType, cSpaceType, Context.MetadataWorkspace.GetItemCollection(DataSpace.CSpace)))
System\Data\WebControls\EntityDataSourceWrapper.cs (5)
38
EntityDataSourceUtil
.CheckArgumentNull(collection, "collection");
39
EntityDataSourceUtil
.CheckArgumentNull(trackedEntity, "trackedEntity");
137
object adjustedValue =
EntityDataSourceUtil
.ConvertType(value, descriptor.PropertyType, descriptor.DisplayName);
148
if (
EntityDataSourceUtil
.NullCanBeAssignedTo(descriptor.PropertyType) || null != adjustedValue)
180
EntityDataSourceUtil
.CheckArgumentNull(referenceList, "referenceList");
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (5)
59
EntityDataSourceUtil
.CheckArgumentNull(context, "context");
60
EntityDataSourceUtil
.CheckArgumentNull(entitySet, "entitySet");
71
_clrEntityType =
EntityDataSourceUtil
.GetClrType(ocWorkspace, entityType);
75
1 <
EntityDataSourceUtil
.GetTypeAndSubtypesOf(entityType, csWorkspace.GetItemCollection(DataSpace.CSpace), true).Count())
81
ReadOnlyCollection<EntityDataSourceColumn> columns =
EntityDataSourceUtil
.GetNamedColumns(csWorkspace, ocWorkspace, entitySet, entityType);
System\Data\WebControls\EntityDataSourceWrapperPropertyDescriptor.cs (3)
41
: base(
EntityDataSourceUtil
.CheckArgumentNull(column, "column").DisplayName, new Attribute[] { })
43
EntityDataSourceUtil
.CheckArgumentNull(collection, "collection");
103
EntityDataSourceUtil
.CheckArgumentNull(component, "component");
System\Data\WebControls\OrderByBuilder.cs (5)
123
if (
EntityDataSourceUtil
.PropertyIsOnEntity(columnName, _wrapperCollection, null, tu))
126
orderByClauseBuilder.Append(
EntityDataSourceUtil
.GetEntitySqlValueForColumnName(columnName, _wrapperCollection));
252
if (keyMemberNames.Contains(property.Name) &&
EntityDataSourceUtil
.IsScalar(property.TypeUsage.EdmType))
258
orderByBuilder.Append(
EntityDataSourceUtil
.EntitySqlElementAlias);
260
orderByBuilder.Append(
EntityDataSourceUtil
.QuoteEntitySqlIdentifier(property.Name));
System\Data\WebControls\WebControlParameterProxy.cs (4)
31
_parameter =
EntityDataSourceUtil
.GetParameter(propertyName, parameterCollection);
103
return
EntityDataSourceUtil
.ConvertTypeCodeToType(this.TypeCode);
105
return
EntityDataSourceUtil
.ConvertDbTypeToType(this.DbType);
115
object paramValue =
EntityDataSourceUtil
.GetParameterValue(_parameter.Name, _collection, _entityDataSource);