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)

15 results in tag: entity

The type 'Company.Model.User' and the type 'Company.Core.Model.User' both have the same simple name of 'User' and so cannot be used in the same model

I have a base entity class ...MyCompany.Core.Model.User... which is to be used for common properties of a ...User... entity:...public class User { public string Username { get; set; } public string Usercode { get; set; } } ...I also have a base ma...
ef-code-first entity entity-framework entity-framework-6 inheritance
asked by Brett Postin

Source Code for Entity framework 6.0.2

Why is there no source code history for entity framework:...http://entityframework.codeplex.com/releases/view/114074...We can download and build the latest release 6.1 (alpha) which we dont want to do but we cannot download and build earlier releases 6.0....
entity entity-framework entity-framework-6
asked by Daniel Haddon

how to insert parent child while doing entityframework.bulkinsert?

I am using Entityframework 6, I am trying to insert a parent-child kind of data in the database. I am using Entityframework.BulkInsert to insert data. I have ...autoIncrement int primary key... in all the tables...My object is as follows :... var paren...
entity entity-framework entity-framework-4 entity-framework-5 entity-framework-6
asked by user3825003

How to use Linq to join entity tables with a cross-reference table

Let me preface this by saying I'm relatively new to Linq, but I seem to have grasped most of it pretty quickly. But this problem has me stumped. I've searched and searched to no avail....I am using code-first and have created have 2 models, "Items" and ...
.net entity entity-framework entity-framework-6 linq
asked by Jason Thuli

How to get a list of all Entity relation in Entity Framework 6.1?

I am trying to get a list of all relations "foreign keys" on a model programmatically (key, related object, foreign column name.)...I found ...this other question... which seems to be doing the same thing. But I am unable to get the code in the answer to ...
c# entity entity-framework entity-framework-6 relation
asked by Jaylen

How can I create a new instance of a class at run time using c#?

I have the following class which I pass Entity Framework Model when making an instance of it....public class TableMapper<TSource> { protected IQueryExtractor QueryExtractor { get; set; } protected string TableAliasPrefix { get; private set; } ...
c# entity entity-framework entity-framework-6
asked by Jaylen

EntityFrameworkCore is there a way to create EnumToStringConverter without passing the enum type as generic?

I am trying to use ...EntityFrameworkCore... ORM to interact with my databases. By default, ...EntityFrameworkCore... seems to store enum as int instead of string. ...However, I would like to store the value in the database as a string. I can see that ...
c# entity entity-framework-core reflection valueconverter
asked by Junior

Updating an entity object with relation to another table-object (NxN) (Inserting, deleting)

Using entity for a table with NxN-relation (to another table), I can´t update the first table object (with its second table inside it) because the program show an exception message related with the second table and it says there is a record with the same...
asp.net c# entity entity-framework entity-framework-6
asked by Elias MP

EF when add Entity, attach this also to mistake Entity but with same property

I have this type of entity...Company with 'n' Service and Company with 'n' Container with 'n' Service...Company(id_s) -> Service(id_s, uuid_c)...Company(id_s) -> Container(uuid_c) -> Service(id_s, uuid_c)...When I add a service, with container, to company...
c# entity entity-framework entity-framework-6
asked by ricga

how to save and compare datetime values in C# and asp.net core?

I'm writing a web app using asp.net core and entity framework core; i want to set current date and time for db objects when they are created and later i need to compare them with datetimes that users specified. my app target users is local to my country. ...
c# datetime entity entity-framework-core
asked by Dewy Eve

Map DTO to Entity

These are my ...Entities...: In this scenario, each user can make a ...Post.... Each post can have a list of ...Items... and each item can have a list of users that Tagged in it....public class Post { public int Id { get; set; } public int UserId ...
asp.net-core c# dto entity entity-framework-core
asked by Saeid Amini

EF Core and DDD: Store ValueObjects in the same table as Entities, also use parametrized constructors to set property values on Entities

Consider these simple classes. They belong to a simple application with Domain Driven Design (DDD) principles, and as such every Entity and ValueObject receives its property values through the constructor while hiding the default, parameter-less construct...
c# domain-driven-design entity entity-framework-core value-objects
asked by TheAgent

Entity Framework Core Entity > Value Object > Entity Relationship

I have the following classes...public class Slot : Entity { public SnackPile SnackPile { get; set; } public SnackMachine SnackMachine { get; set; } public int Position { get; } protected Slot() { } public Slot(SnackMachine sn...
domain-driven-design entity entity-framework-core relationship value-objects
asked by visualbam

How can I fix "The ObjectContext instance has been disposed "

I developed an application with entity framework. I get the ...The ObjectContext instance has been disposed and can no longer be used for operations that require a connection....error from sometimes....I did some research on the internet but I couldn't ...
asp.net asp.net-mvc-4 entity entity-framework entity-framework-6
asked by Engin Ozsozgun

Entity Framework - error: the principal end of this association must be explicitly configured

I have a project built on the top of the ASP.NET MVC 5 framework. I am using Entity Framework 6.2 to access data from my database....I have the following two models...public class Entity<T> where T : struct { [Key] public T Id { get; set; } } pub...
asp.net-mvc asp.net-mvc-5.1 entity entity-framework entity-framework-6
asked by user12310517

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!