6 references to SingleOrDefault
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (4)
CustomPocoTest.cs (4)
42
Assert.Null(db.Users.
SingleOrDefault
(u => u.UserName == oldName));
64
Assert.Null(db.Users.
SingleOrDefault
(u => u.UserName == oldName));
127
Assert.Null(db.Users.
SingleOrDefault
(u => u.UserName == oldName));
149
Assert.Null(db.Set<User<int>>().
SingleOrDefault
(u => u.UserName == oldName));
Microsoft.AspNetCore.Identity.InMemory.Test (1)
InMemoryStore.cs (1)
123
Roles.
SingleOrDefault
(r => String.Equals(r.NormalizedName, roleName, StringComparison.OrdinalIgnoreCase)));
System.Linq.Queryable (1)
System\Linq\Queryable.cs (1)
1346
new Func<IQueryable<TSource>, Expression<Func<TSource, bool>>, TSource?>(
SingleOrDefault
).Method,