private IEdmExpression ComputeEntitySet()
		{
			if (this.functionImport.EntitySet == null)
			{
				if (this.functionImport.EntitySetPath == null)
				{
					return null;
				}
				else
				{
					CsdlSemanticsFunctionImport.FunctionImportPathExpression functionImportPathExpression = new CsdlSemanticsFunctionImport.FunctionImportPathExpression(this.functionImport.EntitySetPath);
					functionImportPathExpression.Location = base.Location;
					return functionImportPathExpression;
				}
			}
			else
			{
				IEdmEntitySet edmEntitySet = this.container.FindEntitySet(this.functionImport.EntitySet);
				IEdmEntitySet unresolvedEntitySet = edmEntitySet;
				if (edmEntitySet == null)
				{
					unresolvedEntitySet = new UnresolvedEntitySet(this.functionImport.EntitySet, this.Container, base.Location);
				}
				IEdmEntitySet edmEntitySet1 = unresolvedEntitySet;
				CsdlSemanticsFunctionImport.FunctionImportEntitySetReferenceExpression functionImportEntitySetReferenceExpression = new CsdlSemanticsFunctionImport.FunctionImportEntitySetReferenceExpression(edmEntitySet1);
				functionImportEntitySetReferenceExpression.Location = base.Location;
				return functionImportEntitySetReferenceExpression;
			}
		}
Beispiel #2
0
 private IEdmExpression ComputeEntitySet()
 {
     if (this.functionImport.EntitySet == null)
     {
         if (this.functionImport.EntitySetPath == null)
         {
             return(null);
         }
         else
         {
             CsdlSemanticsFunctionImport.FunctionImportPathExpression functionImportPathExpression = new CsdlSemanticsFunctionImport.FunctionImportPathExpression(this.functionImport.EntitySetPath);
             functionImportPathExpression.Location = base.Location;
             return(functionImportPathExpression);
         }
     }
     else
     {
         IEdmEntitySet edmEntitySet        = this.container.FindEntitySet(this.functionImport.EntitySet);
         IEdmEntitySet unresolvedEntitySet = edmEntitySet;
         if (edmEntitySet == null)
         {
             unresolvedEntitySet = new UnresolvedEntitySet(this.functionImport.EntitySet, this.Container, base.Location);
         }
         IEdmEntitySet edmEntitySet1 = unresolvedEntitySet;
         CsdlSemanticsFunctionImport.FunctionImportEntitySetReferenceExpression functionImportEntitySetReferenceExpression = new CsdlSemanticsFunctionImport.FunctionImportEntitySetReferenceExpression(edmEntitySet1);
         functionImportEntitySetReferenceExpression.Location = base.Location;
         return(functionImportEntitySetReferenceExpression);
     }
 }