Exemple #1
0
        public static JoinX LeftJoin <M>(this FromX from, Expression <Func <M> > modelFunc)
        {
            from.DC.Action = ActionEnum.LeftJoin;
            var dic = from.DC.EH.FuncTExpression(modelFunc);

            from.DC.DPH.AddParameter(dic);
            return(new JoinX(from.DC));
        }
Exemple #2
0
        /***************************************************************************************************************************/

        public static JoinX InnerJoin <M>(this FromX from, Expression <Func <M> > modelFunc)
        {
            from.DC.Action = ActionEnum.InnerJoin;
            var dic = from.DC.XE.FuncTExpression(modelFunc);

            from.DC.DPH.AddParameter(dic);
            from.DC.SetTbMs <M>(dic.TbAlias);
            return(new JoinX(from.DC));
        }
Exemple #3
0
        public static JoinX LeftJoin <M>(this FromX from, Expression <Func <M> > func)
        {
            var dic = from.DC.EH.ExpressionHandle(func)[0];

            dic.Action = ActionEnum.LeftJoin;
            dic.Crud   = CrudTypeEnum.Join;
            from.DC.AddConditions(dic);
            return(new JoinX(from.DC));
        }
Exemple #4
0
        public override int GetHashCode()
        {
            var hashCode = -1870172418;

            hashCode = hashCode * -1521134295 + FromX.GetHashCode();
            hashCode = hashCode * -1521134295 + FromY.GetHashCode();
            hashCode = hashCode * -1521134295 + ToX.GetHashCode();
            hashCode = hashCode * -1521134295 + ToY.GetHashCode();
            return(hashCode);
        }
Exemple #5
0
        /// <inheritdoc cref="GetHashCode"/>
        public override int GetHashCode()
        {
            var result = 17;

            result = 31 * result + FromX.GetHashCode();
            result = 31 * result + FromY.GetHashCode();
            result = 31 * result + ToX.GetHashCode();
            result = 31 * result + ToY.GetHashCode();

            return(result);
        }
Exemple #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FromX != 0)
            {
                hash ^= FromX.GetHashCode();
            }
            if (FromY != 0)
            {
                hash ^= FromY.GetHashCode();
            }
            if (ToX != 0)
            {
                hash ^= ToX.GetHashCode();
            }
            if (ToY != 0)
            {
                hash ^= ToY.GetHashCode();
            }
            return(hash);
        }