示例#1
0
文件: Query.cs 项目: zhonli/odata.net
 public MemberBindExpression(ExpNode sourceProperty, TypedMemberExpression targetProperty)
     : base("MemberBindExpression")
 {
     SourceProperty = sourceProperty;
     TargetProperty = targetProperty;
     //SourceProperty = new PropertyExpression(
 }
示例#2
0
文件: Query.cs 项目: zhonli/odata.net
        private static MemberBindExpression BindProperty(ResourceType resourceType, string LeftHandSide, string RightHandSide)
        {
            PropertyExpression    sourceProperty = new PropertyExpression(resourceType.Properties[RightHandSide] as ResourceProperty);
            TypedMemberExpression targetProperty = new TypedMemberExpression(resourceType.ClientClrType, resourceType.Properties[LeftHandSide].Name);

            return(new MemberBindExpression(sourceProperty, targetProperty));
        }
示例#3
0
文件: Query.cs 项目: zhonli/odata.net
 public MemberBindExpression(TypedMemberExpression targetProperty)
     : base("MemberBindExpression")
 {
     TargetProperty = targetProperty;
     //SourceProperty = new PropertyExpression(
 }
示例#4
0
文件: Query.cs 项目: zhonli/odata.net
        public static MemberBindExpression Bind(this ResourceType resourceType, string LeftHandSide, ExpNode RightHandSide)
        {
            TypedMemberExpression targetProperty = new TypedMemberExpression(resourceType.ClientClrType, resourceType.Properties[LeftHandSide].Name);

            return(new MemberBindExpression(RightHandSide, targetProperty));
        }