Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.CreateResultType(System.Data.Metadata.Edm.RelationshipEndMember) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
5 Examples
0
1. Example
View licenseinternal static TypeUsage ValidateGetRefKey(DbExpression argument) { ValidateUnary(argument); RefType refType = null; if (!TypeHelpers.TryGetEdmType<RefType>(argument.ResultType, out refType) || null == refType) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GetRefKey_RefRequired, "argument"); } // RefType is responsible for basic validation of ElementType Debug.Assert(refType.ElementType != null, "RefType constructor allowed null ElementType?"); return CreateResultType(TypeHelpers.CreateKeyRowType(refType.ElementType)); }
0
2. Example
View license[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPriva/n ..... /n //View Source file for more details /n }
0
3. Example
View licenseinternal static TypeUsage ValidateNewRow(IEnumerable<KeyValuePair<string, DbExpression>> columnValues, out DbExpressionList validElements) { List<KeyValuePair<string, TypeUsage>> columnTypes = new List<KeyValuePair<string, TypeUsage>>(); var columnValidator = CreateValidator(columnValues, "columnValues", (columnValue, idx) => { CheckNamed(columnValue, "columnValues", idx); columnTypes.Add(new KeyValuePair<string, TypeUsage>(columnValue.Key, columnValue.Value.ResultType)); return columnValue.Value; }, expList => new DbExpressionList(expList) ); columnValidator.GetName = ((columnValue, idx) => columnValue.Key); validElements = columnValidator.Validate(); return CreateResultType(TypeHelpers.CreateRowType(columnTypes)); }
0
4. Example
View licenseinternal static TypeUsage ValidateRefFromKey(EntitySet entitySet, DbExpression keyValues, EntityType/n ..... /n //View Source file for more details /n }
0
5. Example
View licenseinternal static TypeUsage ValidateNavigate(DbExpression navigateFrom, RelationshipEndMember fromEnd, RelationshipEndMember toEnd, out RelationshipType relType, bool allowAllRelationshipsInSameTypeHierarchy) { EntityUtil.CheckArgumentNull(navigateFrom, "navigateFrom"); // // Validate the relationship ends before use // CheckMember(fromEnd, "fromEnd"); CheckMember(toEnd, "toEnd"); relType = fromEnd.DeclaringType as RelationshipType; // // Ensure that the relation type is non-null and read-only // CheckType(relType); // // Validate that the 'to' relationship end is defined by the same relationship type as the 'from' end // if (!relType.Equals(toEnd.DeclaringType)) { throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_Factory_IncompatibleRelationEnds, "toEnd"); } RequireCompatibleType(navigateFrom, fromEnd, allowAllRelationshipsInSameTypeHierarchy); return CreateResultType(toEnd); }