Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

entity-framework

Why is Asp.Net Identity IdentityDbContext a Black-Box?

September 2, 2022 by Magenaut

There is a lot of confusion it seems around IdentityDbContext.

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, asp.net-mvc, c#, entity-framework Leave a comment

Unit-testing .ToListAsync() using an in-memory

September 2, 2022 by Magenaut

Below is the kind of test that is failing upon .ShouldNotThrow() due to .ToListAsync() not being supported by in-memory dbsets (I don’t have the exact wording handy but you get the picture). In case it’s of any importance, I’m trying to mockup the dbset provided by Entity Framework ver. 6.1.3:

Categories ASP.NET, Q&A Tags asp.net, entity-framework, unit-testing Leave a comment

Difference between DropDownlist or DropDownListFor Html helper

September 2, 2022 by Magenaut

It seems weird that I couldn’t find an explanation of the difference between those two helpers, so I would assume that is something obvious but I missed.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, entity-framework Leave a comment

Unable to Retrieve Metadata

September 2, 2022 by Magenaut

MVC4 + Entity Framework 4.4 + MySql + POCO/Code First

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, ef-code-first, entity-framework, mysql Leave a comment

Can you tell JSON.Net to serialize DateTime as Utc even if unspecified?

September 2, 2022 by Magenaut

Dates in my database are stored as Utc. But when I retreieve them w/ the entity framework they come out as type unspecified.

Categories ASP.NET, Q&A Tags asp.net, entity-framework, javascript, json.net Leave a comment

Entity Framework v2 doesn’t support sql 2000?

September 2, 2022 by Magenaut

I installed the beta 2 of Visual Studio 2010 today. I went to test out the new entity framework stuff (to see if my “issues” from v1 were fixed.).

Categories ASP.NET, Q&A Tags ado.net, asp.net, asp.net-4.0, entity-framework Leave a comment

“Context cannot be used while the model is being created” exception with ASP.NET Identity

September 2, 2022 by Magenaut

Why is this happening when we make a call to the AccountApiController.Register() method?

Categories ASP.NET, Q&A Tags asp.net, asp.net-identity, c#, entity-framework, multithreading Leave a comment

EntityFramework Same Table Many to Many Relationship

September 1, 2022 by Magenaut

I have a table called Products which obviously contains products.
However, I need to create related products. So what I’ve done is create a junction table called product_related which has two PKs. ProductID from Products table and RelatedID also from Products table.

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework, sql Leave a comment

Entity Framework – querying a many-to-many relationship table

September 1, 2022 by Magenaut

I have a many-to-many relationship defined like so:

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework, linq Leave a comment

Auto-increment on partial primary key with Entity Framework Core

September 1, 2022 by Magenaut

I have declared the following model using the EF Core fluent API:

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework, entity-framework-core, postgresql Leave a comment
Older posts
Newer posts
← Previous Page1 … Page8 Page9 Page10 … Page25 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress