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

Entity Framework 6 - Knowledge Base (KB)

255 results in tag: asp.net-mvc-5

Custom Membership with Microsoft.AspNet.Identity - CreateLocalUser fails

I've been trying to implement a custom version of the new Identity features in ASP.NET 4.5 (Microsoft.AspNet.Identity), using Visual Studio 2013. After many hours of playing around with this, I've simplified my code in an effort to get it running without...
asp.net-identity asp.net-mvc asp.net-mvc-5 entity-framework owin
asked by Vito

System.Data.Entity.Core.ProviderIncompatible Exception in MVC 5

I am creating an ASP.NET Web Application in mvc5 and i made a model class with a controller. My application is running but when i want to access my moviescontroller in url like localhost:1234/Movies it generates an exception in my MoviesController.cs file...
asp.net-mvc-5 c# entity-framework
asked by Nimit Joshi

Could not load type 'System.Data.Entity.DbSetExtensions' from assembly 'EntityFramework

Updated from entityframework 6.0.0-beta1 to 6.0.0-rc1 and when logging into my MVC5 application i get the following error... {"Could not load type 'System.Data.Entity.DbSetExtensions' from assembly 'EntityFramework, Version=6.0.0.0, Culture=neutral, Publi...
asp.net-identity asp.net-mvc-5 entity-framework entity-framework-6
asked by Tim

IdentityStoreManager could not be found after upgrading Microsoft.AspNet.Identity to rc1

After Upgrading Microsoft.AspNet.Identity.Core to 1.0.0-rc1 several errors appear in the AccountController.cs And AppModel.cs classes which are generated by the default MVC5 templates in Visual Studio 2013....Are there any release notes to explain how to ...
asp.net-identity asp.net-mvc-5 entity-framework-6 visual-studio-2013
asked by Tim

Decoupling Microsoft.AspNet.Identity.*

I am working in Visual Studio 2013 RC and am testing Forms Authentication using new ...Microsoft.AspNet.Identity.*... packages....I would to integrate these concepts (Users, Roles, etc, etc) but want to use my own domain models (POCOs) which are in differ...
asp.net-identity asp.net-mvc asp.net-mvc-5 entity-framework owin
asked by zam6ak

Scaffolding controllers with repositories in Mvc5, EF6, VisualStudio 2013

In vs2012 I used to use Steve Sanderson's mvcScaffolding ...Package... with this package I could scaffold Action Methods with unit tests and controllers with repositories and dependency injection. My question is simple. Is there a way to do so in vs2013? ...
asp.net-mvc-5 asp.net-mvc-scaffolding entity-framework-6 t4scaffolding visual-studio-2013
asked by Maximo Dominguez

How can I map tables using fluent API in ASP.NET MVC 5, Entity Framework 6?

I am trying to create a one to one relationship using C# in Entity Framework 6 using ASP.NET MVC 5 with built-in user authentication....I am able to make tables and connections with the defaults that Entity Framework creates. But when I try to use fluent ...
asp.net-identity asp.net-mvc-5 c# entity-framework entity-framework-6
asked by Bob

In MVC5 how do I set the current date and user id in the view for submitting a new object

I have an entity that has a userId column from the user table and a submitted date column. When I create a new entity I would like to use ...@Html.HiddenFor(m => m.submitteddate) @Html.HiddenFor(m => m.SubmittedById, User.Identity.GetUserId()) ...have the...
asp.net-mvc-5 c# entity-framework-6
asked by Bob

How to change type of id in Microsoft.AspNet.Identity.EntityFramework.IdentityUser

(ASP.NET MVC 5, EF6, VS2013)...I'm trying to figure out how to ...change the type of the "Id" field from string to int... in the type:...Microsoft.AspNet.Identity.EntityFramework.IdentityUser ...in order to have new user accounts be associated with an int...
asp.net-identity asp.net-mvc asp.net-mvc-5 entity-framework owin
asked by BenjiFB

How to implement a Unit of work containing the new IdentityUser

I am wondering what is the best way to add the UserManager to my Unit of work. Should I use the IUstrore interface and add a new UserManager in my controller? Should I just use UserManager in my UnitOfWork or should I do something different?...Here is two...
asp.net-mvc-5 c# entity-framework-6
asked by Casey Sebben

Azure + EF 6 - Making code first migrations work

I am using EF 6 (code first with migrations) for MVC 5 project. On my local DEV machine everything works fine....But when I deploy my project to Azure, I get the following error when my app first tries to interact with the database:...Migrations is enable...
asp.net-mvc asp.net-mvc-5 azure entity-framework entity-framework-6
asked by Moon

How can I get my MultiSelectList to bind to my data model?

I have a many to many relationship between cars and many other tables. In my view I want to be able to have a multiselect list for items such as lights. I've tried many different formats I can't seem to get the list to set selected items.My preferred way ...
asp.net-mvc asp.net-mvc-5 c# entity-framework entity-framework-6
asked by Bob

ASP.NET Identity DB Seed

I am trying to set up some seed data for my MVC 5 Web Application, but it doesn't seem to be creating any for IdentityUser. When I check the App_Data folder it's empty (Show All files is enabled)...Here is my WebAppDatabaseInitializer.cs...public class We...
asp.net-identity asp.net-mvc-5 c# entity-framework
asked by teh0wner

HotTowel EF6 MVC5 Angular Breeze version challenge

Is it Possible to Get HotTowel and EntityFramework 6 working together?...Our DataAccess Layer was upgraded to EF6. The only reference we have to EntityFramework in the Web layer is the Web.Config... <section name="entityFramework" type="System.Data.Entit...
asp.net-mvc-5 breeze entity-framework entity-framework-6 hottowel
asked by phil soady

ASP.NET Identity DbContext confusion

A default MVC 5 App comes with this piece of code in IdentityModels.cs - this piece of code is for all the ASP.NET Identity operations for the default templates:...public class ApplicationDbContext : IdentityDbContext<ApplicationUser> { public Applica...
asp.net asp.net-identity asp.net-mvc asp.net-mvc-5 entity-framework
asked by PussInBoots

User in Entity type MVC5 EF6

I have created a class in MVC5, where I want a primary owner of the content and then I want to have some editors for the content:...public class Content { public int ID { get; set; } public IdentityUser Owner { get; set; } public ICollection<I...
asp.net asp.net-identity asp.net-mvc-5 c# entity-framework
asked by Gunnar

.NET 4.5.1 hosting on .NET 4.5

We are considering web development using .NET 4.5.1 (with VS 2013), EF6 and MVC 5. ...Can we have this application hosted on a shared hosting service provider, which supports .NET 4.5, or do we need to wait for the service provider until they support .NE...
.net-4.5 asp.net-mvc-5 entity-framework-6
asked by user203687

Models.ApplicationDbContext for all models in an Asp.Net MVC 5 application?

I've creating an Asp.Net MVC 5 website. ...I will need to ...add... customized fields in ApplicationUser and ...associate (add foreign keys)... it with other models.... I think I should just use one context type. However, the code scaffold already generat...
asp.net asp.net-mvc asp.net-mvc-5 c# entity-framework
asked by ca9163d9

The type RoleStore<IdentityRole> is not assignable to service IRoleStore<IRole>

I'm trying to set up dependency injection with Autofac for project using MVC5 and EF6....I'm having a hard time figuring out how to decouple correctly the EntityFramework.RoleStore<EntityFramework.IdentityRole> implementation.... I would like have depende...
asp.net-mvc-5 autofac dependency-injection entity-framework-6
asked by Attila Szasz

What is the difference between IdentityDbContext and IdentityDbContext<ApplicationUser> in MVC5

On what basis should one decide to use ...IdentityDbContext... versus ...IdentityDbContext<ApplicationUser>... in an ASP.NET MVC5 application?...What benefits do we get by using ...IdentityDbContext<ApplicationUser>... instead of the non-generic ...Identi...
asp.net asp.net-mvc asp.net-mvc-5 entity-framework entity-framework-6
asked by Sandeep Kumar

Page 1 of 13
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • …
  • »
  • »»

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

EF Extensions
Try for free now
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!