Quantcast
Channel: entityframework Discussions Rss Feed
Browsing all 1793 articles
Browse latest View live

New Post: EFTools compile errors

Hi, I have added the following line to "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Static Analysis Tools\FxCop\CustomDictionary.xml" <Acronyms><CasingExceptions>...

View Article


New Post: EFTools compile errors

@zgabi - the CodeAnalysisDictionary.xml file in the EF src folder contains:<?xml version="1.0" encoding="utf-8"?> <Dictionary> <Words> <Recognized> <Word>asax</Word>...

View Article


New Post: Interface usage in DBContext

Alternatively, you can download my project on Codeplex. I have a working example that you can copy.https://entityinterfacegenerator.codeplex.com/ Then, you can mock your POCO using the newly generated...

View Article

New Post: Namespaces and generated classes in Model First.

I did similar stuffs already. Dealing with prefixes and suffixes used in database naming convention is a real pain because they can't be renamed easily with EDMX. For that, I will add column aliasing...

View Article

New Post: Multi-Tenant With Code First

I am wondering if someone (EF team?) can comment on what would be the performance & memory impact on having potentially hundreds or thousands of tenants using this approach (single model, separate...

View Article


New Post: Multi-Tenant With Code First

Additional question: How to handle "__MigrationHistory" table? Should each schema have its own migration history?

View Article

New Post: EF Model First - Handle SQL Server Schema - Please... Oh Please....

We need the EF Model first mechanism to handle SQL Server Schema when generating Entity Classes. We need the schema to be part of the CLR namespace so that EF can handle the situation when we have two...

View Article

New Post: EF Model First - Handle SQL Server Schema - Please... Oh Please....

Hi stepquest, Thanks for raising this feedback. This is not something we plan to work on immediately but we have heard the request before and we have two work items in the backlog tracking different...

View Article


New Post: EF6 support for ASP.NET WebForms EntityDataSource

I am not sure if this is related to this thread, but I just created a simple EF6 project and am running into problems trying to get an ObjectContext out of a dbContext. I need to do this in order to...

View Article


New Post: EF6 support for ASP.NET WebForms EntityDataSource

Hi Manish, I cannot see anything in your code snippets that wouldn't work with EF, but can I ask why you need to do this? The preferred API to execute raw SQL in EF6 is...

View Article

New Post: Testing async queries with AsNoTracking doesn't work

I'm following this article on how to mock DbContext to make tests for Entity Framework 6, everything works fine so far, I got it working for queries, ToListAsync, etc. But when I use "AsNoTracking" I...

View Article

New Post: EF 6.1 Problem with referential constraint

I have 2 table with composite primary key. I created the model with the wizard "Code first from database". Every query get this exception: One or more validation errors were detected during model...

View Article

New Post: Update entity framework in runtime

How to update entity framework at runtime example, if I create a new column to a table that updates me on the runtime entity so I can show the new column in a grid

View Article


New Post: Multi-Tenant With Database First

is there any possible solution? the main idea is to use EF for DNN.

View Article

New Post: Using enums as typesafe entity ids

Hi! I came up with a possibly stupid idea of using enums for typesafe entity identifiers instead of into. So I would declare enum BlogId : int {} and enum PostId: int{} and use those as keys for blogs...

View Article


New Post: Source Code

I'm getting an error "The item with identity 'conhand' already exists in the metadata collection." I'm trying to upgrade from EF 5 (which everything worked) to EF 6. I haven't changed any code and this...

View Article

New Post: Why EF Reinsert existing records?

I've implemented class to create database for installation ... It work great and it create database correctly. The problem is when i try to insert default Data on empty database ... 1°) It add new...

View Article


New Post: EF 6, Self-Tracking Entities

I would still like to see official STE for EF 6. We have modular application with few hundred of modules(dlls) and few of them are using STE. Problem is, that those few dlls are preventing rest of...

View Article

New Post: Does Code First from Database wizard replace Entity Framework Power...

Does the "Code First from Database" wizard now replace the "Entity Framework Power Tools Beta 4" ? -as the generated files are somewhat quite different between them.

View Article

New Post: EntityTypeConfiguration.Property vs...

Hi, I am using the EntityMappingConfiguration to configure a Derived type, and found its Property function doesn't discriminate between the type of the input Expression. Seems to me it would be natural...

View Article
Browsing all 1793 articles
Browse latest View live