System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.CreateResultType(System.Data.Metadata.Edm.EdmType)

Here are the examples of the csharp api class System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.CreateResultType(System.Data.Metadata.Edm.EdmType) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

2 Examples 7

1. Example

Project: referencesource
Source File: ArgumentValidation.cs
internal static TypeUsage ValidateDeref(DbExpression argument)
        {
            ValidateUnary(argument);
            
            //
            // Ensure that the operand is actually of a reference type.
            //
            EntityType entityType;
            if (!TypeHelpers.TryGetRefEntityType(argument.ResultType, out entityType))
            {
                throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_DeRef_RefRequired, "argument");
            }

            //
            // Result Type is the element type of the reference type
            //
            return CreateResultType(entityType);
        }

2. Example

Project: referencesource
Source File: ArgumentValidation.cs
internal static TypeUsage ValidateNewEntityWithRelationships(EntityType entityType, IEnumerable<D/n ..... /n //View Source file for more details /n }