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)); }
/***************************************************************************************************************************/ 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)); }
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)); }
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); }
/// <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); }
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); }