private IEdmEntityType ComputeBaseType()
 {
     if (this.entity.BaseTypeName == null)
     {
         return(null);
     }
     else
     {
         IEdmEntityType edmEntityType = base.Context.FindType(this.entity.BaseTypeName) as IEdmEntityType;
         if (edmEntityType != null)
         {
             var baseType = edmEntityType.BaseType;
             if (baseType == null)
             {
             }
         }
         IEdmEntityType edmEntityType1       = edmEntityType;
         IEdmEntityType unresolvedEntityType = edmEntityType1;
         if (edmEntityType1 == null)
         {
             unresolvedEntityType = new UnresolvedEntityType(base.Context.UnresolvedName(this.entity.BaseTypeName), base.Location);
         }
         return(unresolvedEntityType);
     }
 }
예제 #2
0
        private IEdmEntityType ComputeElementType()
        {
            IEdmEntityType edmEntityType        = this.container.Context.FindType(this.entitySet.EntityType) as IEdmEntityType;
            IEdmEntityType unresolvedEntityType = edmEntityType;

            if (edmEntityType == null)
            {
                unresolvedEntityType = new UnresolvedEntityType(this.entitySet.EntityType, base.Location);
            }
            return(unresolvedEntityType);
        }
		private IEdmEntityType ComputeBaseType()
		{
			if (this.entity.BaseTypeName == null)
			{
				return null;
			}
			else
			{
				IEdmEntityType edmEntityType = base.Context.FindType(this.entity.BaseTypeName) as IEdmEntityType;
				if (edmEntityType != null)
				{
					var baseType = edmEntityType.BaseType;
					if (baseType == null) { }
				}
				IEdmEntityType edmEntityType1 = edmEntityType;
				IEdmEntityType unresolvedEntityType = edmEntityType1;
				if (edmEntityType1 == null)
				{
					unresolvedEntityType = new UnresolvedEntityType(base.Context.UnresolvedName(this.entity.BaseTypeName), base.Location);
				}
				return unresolvedEntityType;
			}
		}
예제 #4
0
		private IEdmEntityType ComputeElementType()
		{
			IEdmEntityType edmEntityType = this.container.Context.FindType(this.entitySet.EntityType) as IEdmEntityType;
			IEdmEntityType unresolvedEntityType = edmEntityType;
			if (edmEntityType == null)
			{
				unresolvedEntityType = new UnresolvedEntityType(this.entitySet.EntityType, base.Location);
			}
			return unresolvedEntityType;
		}