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

Entity Framework Core - Knowledge Base (KB)

9 results in tag: model-view-controller

Insert data into multiple table in entity framework

I have 2 tables like below. am using DB first approch...public class Team { public long Id { get; set; } public string Name { get; set; } public string Description { get; set; } } public class Employee { public long Id { get; set; } p...
entity-framework entity-framework-6 model-view-controller
asked by Venki

Create a Class for extend Model Classes in EF code first

I have a model class that has for example 3 properties and corresponding table in my data base. ...public partial class Person { public string prop1 {set; get;} public string prop2 {set; get;} public string prop3 {set; get;} } ...Now I want de...
code-first ef-code-first entity-framework entity-framework-6 model-view-controller
asked by Arian

c# Lambda Query fetching one of the property weirdly null

[HttpGet] public ActionResult SecondMission(string Id) { CATSDDEntities db = new CATSDDEntities(); db.Configuration.ProxyCreationEnabled = false; var setAlet= db.Setalets.Where(x => x.Aletler.Barkod == Id && x.Bolum == ...
asp.net c# entity-framework entity-framework-6 model-view-controller
asked by Sameer Kamran

Entity Framework Core - Unique Constraint

I have two models (User and Game) They are connected by another model named PlayerID. For Instance a user can have an special ID for each game. I would like to set it to that a user can only have one ID for each game. What is the best practice for that? ....
asp.net-core c# entity-framework-core model-view-controller
asked by Dane Looman

Why the include function is not including the navigational property of the model?

I have these 2 models:...Phones:...public class Phones { public int ID { get; set; } public string Model { get; set; } public string Manufacturer { get; set; } // e.g. XIAOMI, NOKIA, IPHONE public int UserID { get; ...
c# ef-code-first entity-framework entity-framework-6 model-view-controller
asked by azure boy

Adding item to collection navigation property in EF Core

I have a ...Project... class that contains a collection of ...AppUsers...public class Project { public int ProjectID { get; set; } [Required(ErrorMessage = " Please enter a project name")] public string Name { get; set; } [Required(Error...
asp.net-core c# entity-framework-core model-view-controller
asked by coolhand

Cannot create a DbSet for 'ApplicationUser' because this type is not included in the model for the context

When trying to add a new user using entity framework core I get the above error code. I know this has been asked on here before but I can't fix my issue with the solutions I have found so far....Im trying to create a user with a username (email) and passw...
c# entity-framework-core model-view-controller
asked by JimmyBoy1900

System.InvalidOperationException: 'No suitable constructor found for entity type 'HealthCheck'

I get this error when trying to add something on my db through EF Core. ...System.InvalidOperationException: 'No suitable constructor found for entity type 'HealthCheck'. The following constructors had parameters that could not be bound to properties ...
asp.net c# entity-framework-core model-view-controller
asked by Facundo Gabriel Garca Conejero

How can I add coreIdentity to existing DB

I have problem with adding Microsoft.AspNetCore.Identity.EntityFrameworkCore to my project. I have created db already (code-first) and now i need to add some tables, that are necessary to create login and register system....i've tried to do some tutorials...
asp.net-core c# database entity-framework-core model-view-controller
asked by Caran

Page 1 of 1
  • 1

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
Get monthly updates by subscribing to our newsletter!
SUBSCRIBE!