예제 #1
0
        //public string IfEmptyReturnNull(string qry)
        //{
        //    if (qry == "" || qry == null)
        //        return null;
        //    else
        //    {
        //        string[] str = qry.Split(new char[] { ' ' }, 2);
        //        if (str.Length > 1)
        //        {

        //            if (str[1] == "ascending")
        //                return str[0] + " " + "ASC";
        //            else if (str[1] == "descending")
        //                return str[0] + " " + "DESC";
        //            else
        //                return qry;
        //        }
        //        else
        //            return qry;
        //    }
        //}

        protected ObjectBE GetObjectBE(atDAL.ObjectDAL oDAL, DataTable dt)
        {
            if (dt.ExtendedProperties.ContainsKey("BE"))
            {
                return((ObjectBE)dt.ExtendedProperties["BE"]);
            }
            else
            {
                ObjectBE o = new ObjectBE(this, dt);
                if (oDAL != null)
                {
                    o.myODAL = oDAL;
                }
                return(o);
            }
        }
예제 #2
0
 public static void FixTZDSIssue(DataSet myDS)
 {
     ObjectDAL.FixTZDSIssue(myDS);
 }