Top "Identity" questions

An inherent property of an entity that distinguishes that entity from all others.

How to insert into a table with just one IDENTITY column?

(Came up with this question in the course of trying to answer this other one) Consider the following MS-SQL table, …

sql sql-server identity
Writing Unit Test for methods that use User.Identity.Name in ASP.NET Web API

I am writing test cases using the Unit Test for ASP.NET Web API. Now I have an action which …

asp.net .net unit-testing identity username
MVC5 (VS2012) Identity CreateIdentityAsync - Value cannot be null

I am trying to setup OAuth for a an MVC5 site (in VS2012). I am using Fluent NHibernate. I have …

asp.net asp.net-mvc-5 asp.net-identity identity claims-based-identity
HttpContext.GetOwinContext().GetUserManager<AppRoleManager>() return null

I've used ASP.NET Identity 2 for creating role but the result of HttpContext.GetOwinContext().GetUserManager<AppRoleManager>() was null. …

c# asp.net-identity identity roles owin
Adding Role dynamically in new VS 2013 Identity UserManager

I created a new MVC application in the new VS2013 IDE. I added the following to the Login Action on …

asp.net identity visual-studio-2013 asp.net-roles
newid() vs newsequentialid() What are the differences/pros and cons?

In a database where all of your primary keys are GUIDs, what are the differences/implications and/or pros and …

sql-server-2005 primary-key identity
How to automatically reseed after using identity_insert?

I recently migrated from a PostgreSQL database to a SQL Server database. To switch the data over I had to …

sql-server identity identity-insert
How do I implement custom Principal and Identity in ASP.NET MVC?

I want to store extra information in the authenticated user so that I can have it easily accessible (like User.…

asp.net-mvc-2 forms-authentication identity principal
ClickOnce Error: The deployment identity does not match the subscription

I'm using Visual Studio 2008 SP1. I have a Windows Forms application deployed internally using ClickOnce in a shared folder on …

.net clickonce identity manifest subscription
No service for type 'Microsoft.AspNetCore.Identity.SignInManager When

I am getting InvalidOperationException: No service for type 'Microsoft.AspNetCore.Identity.SignInManager 1[Authorization.IdentityModels.ApplicationUser]' has been registered. when …

asp.net-core asp.net-identity identity .net-core