System.Data.Common.CommandTrees.ExpressionBuilder.Internal.ArgumentValidation.CreateReferenceResultType(System.Data.Metadata.Edm.EntityTypeBase)

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

3 Examples 7

1. Example

View license
internal static TypeUsage ValidateGetEntityRef(DbExpression argument)
        {
            ValidateUnary(argument);

            EntityType entityType = null;
            if (!TypeHelpers.TryGetEdmType<EntityType>(argument.ResultType, out entityType) || null == entityType)
            {
                throw EntityUtil.Argument(System.Data.Entity.Strings.Cqt_GetEntityRef_EntityRequired, "argument");
            }

            return CreateReferenceResultType(entityType);
        }

2. Example

View license
internal static TypeUsage ValidateRefFromKey(EntitySet entitySet, DbExpression keyValues, EntityType/n ..... /n //View Source file for more details /n }

3. Example

View license
internal static TypeUsage ValidateCreateRef(EntitySet entitySet, EntityType entityType, IEnumerable&/n ..... /n //View Source file for more details /n }