Customising the OWIN/Katana UserManager factory behaviour
There are many samples online using OWIN/Katana to find users in a database based on ausername/password combination and generate a claims principal, such as…
There are many samples online using OWIN/Katana to find users in a database based on ausername/password combination and generate a claims principal, such as…
We have an ASP .NET (MVC) app and are using Entity Framework 6 to connect to our databases. The DbContext is constructed in a standard way and it loads the connection string on our behalf. The generated code looks like this:
I am having trouble with something in the Seed method in the Configure.cs for my entity framework 6 code-first migration process. I am running the Update-Database -verbose command in the Package Manager Console, and tried to set breakpoints (in VS studio web express 2013) in the c# code of the Seed method. But even if I put it on the first statement in the method, it is not hit, although the console displays running seed method (and subsequently breaks due to my error)
I’m a new beginner to the entity framework .
I built a nice little API with the ASP.NET Web API, but I guess it’s not right to return the entities from my context (entity framework) AsQueryable, so I’m mapping everything to DTO objects.
We have a multi-layered Asp.NET Web Forms application. The data layer has a class called DataAccess which impements IDisposable and has an instance of our Entity Framework Object Context as a private field. The class has a number of public methods returning various collections of Entities and will dispose its Object Context when it is disposed.
I’ve created the following Context to be used with Entity Framework Code First:
In my Asp.NET MVC4 application I want to add a field to my model without adding it to the database. Sort of a field that only lives in c# instances of the model but not in the database itself. Is there any annotation or other way to exclude the field from the database itself? I … Read more
In Move ASP.NET Identity store to EF Sql database zoidbergi described an issue similar to that which I’m experiencing, but which was not completely answered. I am receiving the error above when attempting to migrate from the inbuilt .mdf database to MySQL. I am using a Database-First methodology and have successfully created the Entity Model from the underlying Mysql database.
When trying to use this code: