Example #1
0
        public static System.Collections.IEnumerable SelectGuid(string TableName, string IDColumnName, string TextColumnName)
        {
            string s = "select distinct " + IDColumnName + ", " + TextColumnName + ", InstanceId  from " + TableName + " where InstanceId='" + MetricTrac.Bll.LinqMicajahDataContext.InstanceId + "' AND Status=1";
            Type   t = typeof(MetricTrac.Bll.LinqMicajahEntitybase).Assembly.GetType("MetricTrac.Bll." + TableName);
            LinqMicajahDataContext dc = new LinqMicajahDataContext();

            System.Collections.IEnumerable ret = dc.ExecuteQuery(t, s, new object[0]);
            return(ret);
        }