Example #1
0
 /// <summary>
 /// Adds a model reference to this model.
 /// </summary>
 /// <param name="model">The model to reference.</param>
 protected void AddReferencedModel(IEdmModel model)
 {
     EdmUtil.CheckArgumentNull(model, "model");
     this.referencedEdmModels.Add(model);
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="EdmPathExpression"/> class.
 /// </summary>
 /// <param name="path">Path string containing segments separated by '/'. For example: "A.B/C/D.E/Func1(NS.T,NS.T2)/P1".</param>
 public EdmPathExpression(string path)
 {
     EdmUtil.CheckArgumentNull(path, "path");
     this.path = path;
 }
Example #3
0
 /// <summary>
 /// Adds a schema element to this model.
 /// </summary>
 /// <param name="element">The element to register.</param>
 protected void RegisterElement(IEdmSchemaElement element)
 {
     EdmUtil.CheckArgumentNull(element, "element");
     RegistrationHelper.RegisterSchemaElement(element, this.schemaTypeDictionary, this.termDictionary, this.functionDictionary, this.containersDictionary);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of <see cref="EdmReferentialConstraint"/>.
 /// </summary>
 /// <param name="propertyPairs">The set of property pairs from the referential constraint.</param>
 public EdmReferentialConstraint(IEnumerable <EdmReferentialConstraintPropertyPair> propertyPairs)
 {
     EdmUtil.CheckArgumentNull(propertyPairs, "propertyPairs");
     this.propertyPairs = propertyPairs.ToList();
 }