System.Collections.Generic.List.Add(group)

Here are the examples of the csharp api System.Collections.Generic.List.Add(group) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

3 Examples 7

19 View Source File : groupEx.cs
License : MIT License
Project Creator : ecjtuseclab

public List<group> getDynamicGroup(string key, string value)
        {
            string sql = string.Format("select * from group where {0}={1}", key, value);
            List<group> glist = db.SqlQueryDynamic(sql);
            List<group> Iglist = new List<group>();
            foreach (group g in glist)
            {
                Iglist.Add(g as group);
            }
            return Iglist;
        }

19 View Source File : groupEx.cs
License : MIT License
Project Creator : ecjtuseclab

public  List<group> getPageGroup(int pageIndex, int pageSize)
        {
            int pageCount = 0;
            List<group> glist = new List<group>();
            glist = db.Queryable<group>()
                .Where(c => c.id > 1).OrderBy(it => it.id)
                .ToPageList(pageIndex, pageSize, ref pageCount);//pageCount总条数
            List<group> Iglist = new List<group>();
            foreach (group g in glist)
            {
                Iglist.Add(g as group);
            }
            return Iglist;
        }

19 View Source File : groupEx.cs
License : MIT License
Project Creator : ecjtuseclab

public List<group> getPageGroup(int pageIndex, int pageSize)
        {
            int pageCount = 0;
            List<group> glist = new List<group>();
            glist = db.Queryable<group>()
                .Where(c => c.id > 1).OrderBy(it => it.id)
                .ToPageList(pageIndex, pageSize, ref pageCount);//pageCount总条数
            List<group> Iglist = new List<group>();
            foreach (group g in glist)
            {
                Iglist.Add(g as group);
            }
            return Iglist;
        }