Exemple #1
0
        public static List <NetUserDomain> GetUserList()
        {
            List <NetUserDomain> list = null;

            DataProvider.ExecuteCmd(GetConnection, "dbo.AspNetUser_SELECTALL"
                                    , inputParamMapper : null
                                    , map : delegate(IDataReader reader, short set)
            {
                NetUserDomain info = new NetUserDomain();
                int startingIndex  = 0;

                info.Id       = reader.GetSafeString(startingIndex++);
                info.Email    = reader.GetSafeString(startingIndex++);
                info.UserName = reader.GetSafeString(startingIndex++);

                if (list == null)
                {
                    list = new List <NetUserDomain>();
                }
                list.Add(info);
            });
            return(list);
        }
        public static List<NetUserDomain> GetUserList()
        {
            List<NetUserDomain> list = null;
            DataProvider.ExecuteCmd(GetConnection, "dbo.AspNetUser_SELECTALL"
                , inputParamMapper: null
                , map: delegate (IDataReader reader, short set)
                {
                    NetUserDomain info = new NetUserDomain();
                    int startingIndex = 0;

                    info.Id = reader.GetSafeString(startingIndex++);
                    info.Email = reader.GetSafeString(startingIndex++);
                    info.UserName = reader.GetSafeString(startingIndex++);

                    if (list == null)
                    {
                        list = new List<NetUserDomain>();
                    }
                    list.Add(info);
                });
            return list;
        }