New Post: Ensuring order of elements in a list [EF6]
Think in terms of SQL: you will need to create an "Order" property and set it accordingly. When querying using LINQ you can use "order by ordercolumn asc" Best regards, D.R.
View ArticleNew Post: EF 5 Code First inheritance mapping
Spent some time yesterday thinking about this problem and playing around with entity framework database generation. Came to conclusion, that my idea cannot be done in the EF as I expect the Children...
View ArticleNew Post: EF migrations require a DbContext default constructor
Currently all PowerShell EF migration utilities require the DbContext to have a default constructor - even if I supply the command with the necessary connection string and provider name. Is there any...
View ArticleNew Post: EF6 Code First: All string properties are output as unicode: false...
This issue still isn't fixed in 6.1, any plans?
View ArticleNew Post: EF6 Code First: All string properties are output as unicode: false...
@qusma: bug #1665 was in fact fixed in 6.1, or so we believe. Perhaps what you are seeing is a different issue or a specific scenario in which the behavior still isn't correct. In any case, could you...
View ArticleNew Post: DDEX version of ADO.NET provider and EF6 one in EDMX wizard
Hi *, when you use the wizard it relies first on DDEX to get some connection. In this stage the DDEX uses (mostly) the ADO.NET provider from GAC. Once the wizard starts loading database structure (the...
View ArticleNew Post: Writing large files into SQL Server table
When trying to save large (100 mb) file to sql server database, I get Out of Memory exception. It's SQL Server 2008 R2, and we use Code First, if it matters (so DB type is VARBINARY, byte array in C#...
View ArticleNew Post: EF migrations require a DbContext default constructor
Hello Dominik, To can provide EF with a factory for your context instances so that when we need to instantiate your context at design-time we know how to populate your constructor parameters. To do...
View ArticleNew Post: Code First TVF in 6.1.0-alpha1-30113
Unfortunately this doesn't handle one of the most important reasons for using TVFs (as opposed to a stored procedure): The ability to inline a where clause etc. For instance, if you want to use Full...
View ArticleNew Post: Code First TVF in 6.1.0-alpha1-30113
Hi Geminiman, Thanks for taking the time to explain but I am still finding hard to understand what you mean is missing :(. Could you provide code samples, e.g. a LINQ query that shows what you are...
View ArticleNew Post: DDEX version of ADO.NET provider and EF6 one in EDMX wizard
Hi Jiri, I think the exception can happen even if you had the same versions of the dll. Note that they are loaded to the same AppDomain but in different contexts - in your case the 'Default' context...
View ArticleNew Post: DDEX version of ADO.NET provider and EF6 one in EDMX wizard
Hi Pawel, Yeah, sorry I swapped AppDomains and load contexts. However if the versions are same then it works. I checked it now. Even with strong names. Well if this would not work there would be no way...
View ArticleNew Post: EntityFramework querying for __MigrationHistory with SetInitializer...
We've got the following in the static constructor of our DbContext: static MyDbContext() { Database.SetInitializer<MyDbContext>(null); } However, when our application starts up, on occasion, we...
View ArticleNew Post: EntityFramework querying for __MigrationHistory with SetInitializer...
Ah, apologies. This is resolved now. We were in fact inheriting from that context elsewhere, and therefore we needed to set the initializer for the derived class.
View ArticleNew Post: DDEX version of ADO.NET provider and EF6 one in EDMX wizard
Hi Jiri, I must have been doing something wrong then when I tried it because (as you can see in the bug https://entityframework.codeplex.com/workitem/1183) I got the exception even if the versions of...
View ArticleNew Post: DDEX version of ADO.NET provider and EF6 one in EDMX wizard
Yep, looks like that's only solution now. Let's see how users will handle that.
View ArticleNew Post: Code First TVF in 6.1.0-alpha1-30113
from r in Requests where SomeTVF('SomeString').All() select r Will fail. As will any TVF in the Select, Any, All or OrderBy in the same fashion. You use this all of the time if you're doing security...
View ArticleNew Post: Code First TVF in 6.1.0-alpha1-30113
Have you tried this: http://blog.3d-logic.com/2014/04/09/support-for-store-functions-tvfs-and-stored-procs-in-entity-framework-6-1/?
View ArticleNew Post: Suggestions for the designer
I have been looking for the same (#1) for a while now... knowing that it was possible in EF4. e.g....
View Article