Exemplo n.º 1
0
        public DataView SelPromotion()
        {
            string  sql = "select * from PromotionInfoTab";
            DataSet ds  = crm.ExecuteQuery(sql);

            if (ds == null || ds.Tables[0].Rows.Count == 0)
            {
                return(null);
            }
            return(ds.Tables[0].DefaultView);
        }