internal ClientTypeAnnotation(IEdmType edmType, Type type, string qualifiedName, DataServiceProtocolVersion maxProtocolVersion) { this.EdmType = edmType; this.ElementTypeName = qualifiedName; this.ElementType = Nullable.GetUnderlyingType(type) ?? type; this.MaxProtocolVersion = maxProtocolVersion; this.epmLazyLoader = new EpmLazyLoader(this); }
internal ClientTypeAnnotation(IEdmType edmType, Type type, string qualifiedName, ClientEdmModel model) { Debug.Assert(edmType != null, "edmType != null"); Debug.Assert(null != type, "null type"); Debug.Assert(!string.IsNullOrEmpty(qualifiedName), "!string.IsNullOrEmpty(qualifiedName)"); this.EdmType = edmType; this.EdmTypeReference = this.EdmType.ToEdmTypeReference(Util.IsNullableType(type)); this.ElementTypeName = qualifiedName; this.ElementType = Nullable.GetUnderlyingType(type) ?? type; this.model = model; this.epmLazyLoader = new EpmLazyLoader(this); }