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

New Post: Using non-standerd Foreign Key navigation property

I am using EF 6.1 Code first against an existing database and I am trying to change the column that is being used to configure a navigation. Here is a shortened version of my model:public class...

View Article


New Post: DbModel StoreItemCollection and EdmFunction (Code First 6.0.1)

Hi, Halo_Four: Would you like share your code with us? thanks a lot!

View Article


New Post: Inconsistent creation of default constraints

For a project I use EF 6, a Code First model and Migrations. During some testing that involved migrating to an earlier version of the database, I got an error due to a default constraint in SQL Server....

View Article

New Post: Custom Sql migration generator migration error

I wrote an sql migration generator for EF 6 and Postgresql. It is not complete but I tried to run it and after had execute a couple of migrations correctly, it give to me the error below. I haven't...

View Article

New Post: Dropdown List

Hi everybody. I have this: Controller: [code] public ActionResult Index() { //var cats = faqCategorieService.GetAll().ToList(); var categories = faqCategorieService.GetAll().OrderBy(x => x.Naam)...

View Article


New Post: Inconsistent creation of default constraints

Hey, We create the default constraint when you use AddColumn to deal with any existing rows in the database. For example, if you and an int based column to the table then we would set a default value...

View Article

New Post: Using non-standerd Foreign Key navigation property

Hey Chris, EF only supports having foreign keys that target the primary key of the principal entity. Since WorkflowRow.FamilyId isn't the primary key it can't be the target of a foreign key. Here is...

View Article

New Post: Using non-standerd Foreign Key navigation property

In my case the Document.FamilyId isn't unique. Multiple Documents can have the same FamilyId, and each of those should point to the same set of WorkflowRows. I am currently attempting to create some...

View Article


New Post: Error 3034: splitting an entity

I have a simple issue (I think). I'm getting Error 3034: Problem in mapping fragments starting at lines ... I have a table with a bunch of fields. no associations (currently) to other tables. This...

View Article


New Post: Plans to improve bulk insert perf?

I've been really enjoying using EF lately but run into problems when I need to insert (or, less commonly, update) a lot of items. I know this is an issue that has come up in the past, but the forums...

View Article

New Post: EF6 user defined function with Fluent API/Code First

AFAIK, Code First does not currently support UDF's. However, this will probably appear in a future release:"The plan is to add support in Code First for all the same kind of functions that are...

View Article

New Post: Typed Version of ObjectParameter

@ploring At first glance I don't see any reason why we couldn't use a generic ObjectParameter object, so this is something we might consider taking if you contributed the code. Rather than calling the...

View Article

New Post: EF 61.1. throws ArgumentNullException for connection parameter...

We recently upgraded EntityFramework version from EF5 to EF6.1.1. We updated the assemblies and also the namespaces as required. But now randomly we are getting ArgumentNullException for connection...

View Article


New Post: EF 61.1. throws ArgumentNullException for connection parameter...

@lax4u Is it possible that the same context instance is being used by multiple threads concurrently, or that multiple context instances are using the same EntityConnection and are trying to dispose it...

View Article

New Post: EF 61.1. throws ArgumentNullException for connection parameter...

Thanks for your reply We haven't changed any framework logic, We removed the references of EF 5 & System.Data.Enity assembly and add reference to EF 6.1.1. assembly And then updated namespaces...

View Article


New Post: Supported databases for Entity Framework 6.0

which all databases are supported previously by Entity Framework and which all supported now. Anyone have project demo for EF 6.0 and Postgres

View Article

New Post: EF 61.1. throws ArgumentNullException for connection parameter...

@lax4u I understand that EF6 is behaving differently for you with otherwise unchanged code. One possible reason for this is multi-threaded code that is behaving differently under EF6 than it did...

View Article


New Post: [Table] and [Column] apparently ignored

I posted this questionhttp://stackoverflow.com/questions/24918406/ef6-ignoring-table-and-column-in-entity-classes and perhaps did the wrong thing by marking it answered before seeing anything from the...

View Article

New Post: [Table] and [Column] apparently ignored

Hi JMerrill, Hard to tell. At first glance from reading your question it seemed to me that you were using and EMDX file and that would explain the behavior (for EDMX we use the mapping specification in...

View Article

New Post: [Table] and [Column] apparently ignored

I guess you should close this. I created a brand-new console app project, copied in the Model and PhoneData .cs files (not the , and wrote a quick thing to try it out, working with a new empty...

View Article
Browsing all 1793 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>