예제 #1
0
        public virtual string GetSelectString(DataEntityMapping mapping)
        {
            StringBuilder sb = new StringBuilder();

            string[] names = mapping.GetFieldNames();
            bool     flat  = false;

            foreach (string name in names)
            {
                string fieldname = CreateDataFieldSql(name);
                if (!flat)
                {
                    flat = true;
                }
                else
                {
                    fieldname = "," + fieldname;
                }
                sb.Append(fieldname);
            }
            return(sb.ToString());
        }