i've got error when using "skip" in linq
there is my query:
Dim list =
(From u In db.User
Group Join l In db.Lookup.Where(Function(l) l.Type = "UserStatus") On u.Status Equals l.Code Into Group
From l In Group.DefaultIfEmpty()
Select New UserDto With {
.Id = u.Id,
.Username = u.Username,
.Status = u.Status,
.StatusValue = l.Value,
.CountWrongTries = u.CountWrongTries,
.LastLogin = u.LastLogin,
.CreatedTime = u.CreatedTime,
.CreatedBy = u.CreatedBy,
.UpdatedTime = u.UpdatedTime,
.UpdatedBy = u.UpdatedBy}).Where(Function(u) u.Username.Contains("a")).
OrderBy(Function(n) n.Username).Skip(1).Take(5).ToList()
there is error outout
An exception has been raised that is likely due to a transient failure
inner exception:
A transport-level error has occurred when sending the request to the server. (provider: Named Pipes Provider, error: 0 - The specified network name is no longer available.)
but its runing well if i remove "skip(1)" syntax
i need "skip" for pagination big record
( sorry my bad english)