public CsdlSemanticsUntypedTypeReference(CsdlSemanticsSchema schema, CsdlUntypedTypeReference reference)
     : base(reference)
 {
     this.schema     = schema;
     this.Reference  = reference;
     this.definition = EdmCoreModel.Instance.GetUntypedType();
 }
예제 #2
0
        public void GetUntypedShouldReturnCorrectUntypedTypeReference(bool isNullable)
        {
            IEdmUntypedTypeReference untypedTypeReference = EdmCoreModel.Instance.GetUntyped(isNullable);

            Assert.NotNull(untypedTypeReference);
            Assert.Equal(isNullable, untypedTypeReference.IsNullable);

            IEdmUntypedType untypedType = EdmCoreModel.Instance.GetUntypedType();

            Assert.Same(untypedTypeReference.Definition, untypedType);
        }
예제 #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="definition">IEdmUntypedType definition.</param>
 /// <param name="isNullable">Denotes whether the type can be nullable.</param>
 public EdmUntypedTypeReference(IEdmUntypedType definition, bool isNullable)
     : base(definition, isNullable)
 {
 }
예제 #4
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="definition">IEdmUntypedType definition.</param>
 public EdmUntypedTypeReference(IEdmUntypedType definition)
     : this(definition, true)
 {
 }