zzz projects Entity Framework 6 EF 6
Home EF Core 5 Articles Knowledge Base Online Examples
  • Home
  • EF Core 5
  • Articles
  • Knowledge Base
  • Online Examples

Entity Framework 6 - Knowledge Base (KB)

29 results for: in tag: asp.net-identity-2

Entity Framework 6 and Asp.Net Identity UserManager: Multiple DbContext

This is MVC 5/ EF6. So I have the following classes:...public class User : IdentityUser { public User() { Levels = new List<Level>(); } [Required, MaxLength(200)] public string FirstName { get; set; } [Required, MaxLength...
asp.net-identity-2 asp.net-mvc-5 c# entity-framework-6
asked by dima

exception after upgrade ASP.NET Identity to 2.0

my project: VS2013, Entity Framework, Web forms, database first, Identity...I updated all NuGet packages of my project today (2014-4-15). Among them, Identity is upgraded to 2.0.0.0....I thought things were going good, but unfortunately when I run the app...
asp.net asp.net-identity asp.net-identity-2 entity-framework
asked by martial

Trying to change table names in ASP.NET Identity 2.0

I want to change the names of the tables used by ASP.NET Identity 2.0. I've seen various similar questions but nothing that solves my problem. For instance this type of solution: ...http://www.goatly.net/customizing-table-names-for-identitydbcontextwithcu...
asp.net-identity-2 c# entity-framework
asked by see sharper

Understanding MVC-5 Identity

I created a new ...ASP.NET MVC-5... application with ...Individual User Accounts... and then updated all the ...Nuget packages... in the solution. Now I'm trying to follow some of the guidelines shown in some tutorials but I encountered some problems. Th...
asp.net-identity-2 asp.net-mvc asp.net-mvc-5 c# entity-framework
asked by Yoav

Entity Framework 6 Code First Migrations using Identity user models in a separate project

Is it possible using EF6 Code First and MVC5 to put all the models, views, and controllers that involve ASP.Identity into its own class library project. So that over multiple web applications you could use that same DLL and already have all the views / co...
asp.net-identity-2 asp.net-mvc-5 entity-framework-6
asked by clee

How to get the OWIN context on ASP.Net Identity?

I'm trying to get the DbContext from the current Owin context, so I can use a single context on my application, however, I'm getting a NullReferenceException....I can access UserManager and RoleManager:...private ApplicationUserManager _userManager; p...
asp.net-identity-2 asp.net-mvc entity-framework
asked by Carlos Martinez

How to list users with role names in ASP.NET MVC 5

I have default project template of ASP.NET MVC 5 web site and I am trying to list all users with role names (not IDs)....The query is:...db.Users.Include(u => u.Roles).ToList() ...Then I want to print the role names with something like:...@string.Join(", ...
asp.net-identity-2 asp.net-mvc-5 c# entity-framework-6
asked by NightElfik

Cannot insert the value NULL into column 'Discriminator', table '...AspNetUsers'; column does not allow nulls. INSERT fails

Entity Framework 6, MVC5, ASP Identity 2.0. ...I'm new to Entity framework and ASP Identity. I've created database with Code First approach, following these instructions: ...http://dotnetcodr.com/2014/07/10/introduction-to-entityframework-6-part-1-the-bas...
asp.net-identity-2 asp.net-mvc asp.net-mvc-5.2 entity-framework-6
asked by Lera

Creating Asp.net Identity user in Seed method of Db Initializer

I have created my data layer with EF 6 code first and I am populating the db through ...Seed... method of ...EvInitializer... class inheriting from ...DropCreateDatabaseIfModelChanges.... The implementation of ...Seed... method is ...protected override vo...
asp.net-identity asp.net-identity-2 entity-framework entity-framework-6
asked by Muhammad Adeel Zahid

A second operation started on this context before a previous asynchronous operation completed error in a synchronous asp.net identity call

I am getting ..."A second operation started on this context before a previous asynchronous operation completed"...error intermittently in an MVC project that uses asp.net identity 2.1. Basically I have a base controller where every other controller deri...
asp.net-identity-2 entity-framework-6
asked by freud

ASP.NET MVC5 EF6: Given multiplicity constraints, a corresponding 'User_AppUser_Target' must also in the 'Deleted' state. Repository Pattern

I have an MVC5 project using Identity 2 and Entity Framework 6 and the repository pattern, that is redeveloping an old classic asp system. I started the project with Identity 1, after which in v2 they introduced that the ApplicationUser primary key can be...
asp.net-identity-2 asp.net-mvc-5 c# entity-framework-6 repository-pattern
asked by Rhys Stephens

MVC/Code First: how to add more tables to the same db context?

I am using the standard MVC template that comes with VS 2013. It has a neat membership provider that makes using external logins (Google, Facebook etc) a breeze. There are also tutorials on how to extend the ...IdentityUser... model to add new propertie...
asp.net-identity asp.net-identity-2 asp.net-mvc ef-code-first entity-framework
asked by Old Geezer

ASP.NET MVC5 - Keeping Users in Oracle Database

Once creating a ...ASP.NET MVC5... project (with target framework is ....NET 4.5.1... and the authentication type is ...Individual User Account...), so what is the most elegant way to configure the project so that it keeps the user, claims, roles etc. in ...
asp.net-identity-2 asp.net-mvc-5 database entity-framework-6 oracle
asked by vahdet

ASP.NET Identity + Entity Framework + SQLite to share

For our project needs, I created my own ASP.NET Identity 2.0 Provider with SQLite database, and Entity Framework used in MVC 5.2 application. It's methods are all async. All of the problems with the connection to SQLite DB are resolved (I saw many questio...
asp.net-identity-2 asp.net-mvc-5.2 c#-5.0 entity-framework-6 sqlite
asked by Andrew

Example of using asp.net 5 MVC 6 with Identity and EF 6

I'm setting up a new project using asp.net 5 and MVC 6, but I want to use Entity Framework 6 due to the missing features in EF 7....I setup EF 6.1.3 and that is working....Identity 3.0 depends on EF 7 so I have removed that and referenced in Identity 2.2 ...
asp.net-core asp.net-identity-2 entity-framework-6
asked by Tom

One to many relationship between AspNetUsers (Identity) and a custom table

I'm desperate trying to create an One to Many relationship between AspNetUsers table of Identity 2.0 and a custom table called Map (One user can have many maps, but a map can only have one user) I've tryied mostly every solutions available in this website...
asp.net-identity-2 asp.net-mvc-5 c# entity-framework mysql
asked by SergioPetrarca

User manager CreateAsync running very slow - Identity 2

I'm running this query to import uses from an old MySQL database to a new SQL database using entity framework and Microsoft's Identity 2 and on the local server Visual Studio Community edition runs alongside SQL Server 10.0.5...User manager declaration...
asp.net-identity-2 asp.net-mvc-5 c# entity-framework-6
asked by Jimmyt1988

Understanding Asp.Net Identity key points

I am an Asp.net developer but very much new to the Asp.net Identity framework. I have been studying the sample application and followed some tutorials too on Identity but still I am not able to grasp the concept completely. I have very firm grip over Asp....
asp.net-identity-2 asp.net-mvc-5 entity-framework-6
asked by Adnan Yaseen

Decoupling Asp.net Identity 2 web api from project?

I have created an Asp.net Web API 2 project following tutorials like ...this one.... I've extended the identity models to use int keys for my users ...like so.... Now I am stuck on how to completely decouple this "Auth API" from my core project. I'm aware...
angularjs asp.net-authorization asp.net-identity-2 bearer-token entity-framework-6
asked by BBauer42

Entity Framework 6 Code first One-to-Many relation in 3rd level child tables

I have ...ApplicationUser... table created by ASP.NET identity framework and want to use another table Customer with ...one-to-one relation.... The ...PK... of ...ApplicationUser... table is ...Id... of type string. And the ...Customer... table has a ...F...
asp.net-identity-2 c# ef-code-first entity-framework-6
asked by Dush

Page 1 of 2
  • 1
  • 2
  • »

Prime Library

Performance

  • Entity Framework Extensions
  • Entity Framework Classic
  • Bulk Operations
  • Dapper Plus

Expression Evaluator

  • C# Eval Expression
  • SQL Eval Function
More Projects...

Related

  • EF Extensions Online Benchmark
  • WIN an EF Extensions license
  • EF6 BatchSaveChanges for only $79
Save your entities 20× faster with EF Extensions
SaveChanges vs BulkSaveChanges

Try for free now