private void initFrom() { //初始库房下拉列表 string sql = "select a.depotid,a.depotname from dp_dmdepot a left join REL_USER_DMDEPOT b on a.depotid=b.depotid where b.user_code='" + theUserCode + "' and b.PROGRAM_CODE='INV9900' "; //string sql = "Select depotid,depotname from dp_dmdepot order by depotId"; SqlFrom.SelectCommand = sql; SqlFrom.DataBind(); }
/// <summary> /// Visits the specified <see cref="SqlFrom"/>. /// </summary> /// <param name="expression"> /// The expression to visit. /// </param> public virtual void Visit(SqlFrom expression) { }
public void ExpressionType_ReturnsFrom() { var from = new SqlFrom((SqlTable)"Users"); Assert.Equal(SqlExpressionType.From, from.ExpressionType); }