Skip to main content

All Questions

0 votes
0 answers
100 views

How to represent a filesystem in EF6

I need to represent a filesystem using EntityFramework 6. I have tried multiple ways of defining the relationships but I didn't found a way that worked. So basically I have these 3 classes. (I only ...
LelouBil's user avatar
0 votes
1 answer
60 views

Creating first degree navigation properties to handle complex relations

We design an asset management system to track the tangible assets circulating in an institution. We use ASP.NET MVC architecture with EF6 as our ORM. Entities: Asset is an equipment owned by the ...
Emre Can Serteli's user avatar
2 votes
0 answers
136 views

Loading child entities with parent object graph using Entity framework

I am trying to model something similar to a graph representation of a object where it's children are dependencies on which the parent depends. Example here is the table structure. Initative Id | ...
thebenman's user avatar
  • 1,621
0 votes
1 answer
92 views

EF6 Model Separation

I am trying to have a common model referenced by multiple programs, and not sure how to design it correctly for re-use. Not all programs are going to need all parts of the model, but id prefer not to ...
iXDev's user avatar
  • 35
0 votes
1 answer
93 views

Entity Framework Code First table relationships

I have a C# app which connects to a Web API which feeds my app some XML data for estate agency listings and agents. The XML looks something along these lines: <Snapshot> <Agents> ...
Fabricio Rodriguez's user avatar
0 votes
0 answers
530 views

How improve performance Entity Framework 6

How do I improve the performance of Entity Framework with getting a million records? Table items have a million records and relationship with another table. When making a linq query, it takes more ...
Mohamed Elsokary's user avatar
1 vote
3 answers
73 views

Entity Framework Modeling code first

I have what I think is a simple modeling problem, but for some reason I can't wrap my head around what the best way to solve it is. I have A Person class (That holds information about a user) and I ...
kcon90's user avatar
  • 35
0 votes
0 answers
39 views

Entity Framework 6 Design Architecture For Images

The point is: I use EF6 and have 2 entities which may have some connected images, but these entities are not connected with any hierarchy (e.g EntityA, EntityB). These images may exist in different ...
frninja's user avatar
1 vote
0 answers
679 views

Should I use Guid or Int as Primary Key (Entity Framework 6) [duplicate]

I know this question is asked alot, but I still can't decide which one is better for me. In my system I have a table of Emails. New emails are created often, the ones that exist are deleted often, ...
user avatar
3 votes
2 answers
2k views

EF6 code first multiple 1-to-many mapping issue / "Multiplicity" error

I am receiving the following error when attempting to create the database: One or more validation errors were detected during model generation: Interaction_CauseElement_Source: : Multiplicity ...
jwatts1980's user avatar
  • 7,364
0 votes
1 answer
584 views

EF 6 Multiple Context to the same Database(table/entitie separation)

For my project i need to break the Database to multiple Context for modulation separation, example: DataContext1: Car, Person, Color.(Geral Module) DataContext2: BankAccount, Money, Income.(Financial ...
Danilo Breda's user avatar
  • 1,122
0 votes
1 answer
453 views

One database, multiple .NET MVC 5 instances

I have written c# ASP.NET MVC 5 with EF 6 application. I have 2 clients. Fore each of them I need to modify the app slightly. I wont them to share one database, but with separate table names, which I ...
HerGiz's user avatar
  • 967
1 vote
3 answers
2k views

Authorize data access at database level

From the question title you might guess what is this about. I'll try to describe what I currently have and what I want to archive. Suppose an application that handles four entities: User, Team, ...
rareyesdev's user avatar
  • 2,427
0 votes
0 answers
149 views

Best way to fetch data from localized database

I created table structure to make statuses localized in database: Status {StatusId, Value} -- Value in this table is status value in default language StatusTranslation {StatusId, Language, ...
1110's user avatar
  • 6,859
0 votes
2 answers
85 views

Entity framework change in database

What to do when changing database on Entity Framework Hi, I am using Microsoft Entity Framework with C#. I used a code first method so that entity framework created some magic code for me so that i ...
user3568104's user avatar

15 30 50 per page