Skip to content

Magenaut

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

entity-framework

Cannot resolve DbContext in ASP.NET Core 2.0

August 31, 2022 by Magenaut

First of all, I’m trying to seed my database with sample data. I have read that this is the way to do it (in Startup.Configure) (please, see ASP.NET Core RC2 Seed Database)

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

When should I use a CompiledQuery?

August 31, 2022 by Magenaut

I have a table:

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

Entity Framework Core multiple connection strings on same DBContext?

August 31, 2022 by Magenaut

I have an Asp.Net Core app with Entity Framework Core that I initialize as follows:

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

Store update, insert, or delete statement affected an unexpected number of rows (0) EntityFramework

August 31, 2022 by Magenaut

Store update, insert, or delete statement affected an unexpected
number of rows (0). Entities may have been modified or deleted since
entities were loaded. Refresh ObjectStateManager entries.

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

json.net; serialize entity framework object (circular reference error)

August 31, 2022 by Magenaut

I have an entity framework entity that i want to serialize as a json object. I looked around and found out that json.net (http://james.newtonking.com/projects/json-net.aspx) should be able to serialize objects with circular references “out of the box”. So i tried using

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

How to execute raw SQL query using Entity Framework without having to use a model?

August 31, 2022 by Magenaut

I am trying to learn C# ASP.NET MVC 5. And I am trying to use Entity Framework for everything I do.

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

DB Connection string in Web.config to use attached .mdf database won’t work

August 31, 2022 by Magenaut

The file neodb.mdf is in my App_Data folder and I can browse the database in the server explorer in visual studio, using built in SQLEXPRESS:

Categories ASP.NET, Q&A Tags asp.net, entity-framework, sql-server, sql-server-2008, visual-studio Leave a comment

How to get all users in Role (Microsoft ASP.NET Identity EntityFramework 2.0.0-beta1)?

August 30, 2022 by Magenaut

I just updated to ASP.NET Identity EntityFramework 2.0.0-beta1 and got a compilation errors for my Roles classes. Maybe somebody can give me some clue how to get all users for a specific Role?

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

Managing EntityConnection lifetime

August 30, 2022 by Magenaut

There have been many question on managing EntityContext lifetime,

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

Dynamically select columns in runtime using entity framework

August 30, 2022 by Magenaut

I have an existing function like this

Categories ASP.NET, Q&A Tags asp.net, c#, entity-framework, formatexception, sql Leave a comment
Older posts
Newer posts
← Previous Page1 … Page11 Page12 Page13 … 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