DefaultSQLExecutionStrategy missing - entity-framework

I have download EF6 using nuget (version 6.0.21010).
I can't find the DefaultSQLExecutionStrategy mentioned in this EF6 article - http://msdn.microsoft.com/en-us/data/dn456835
Can anyone tell me where it is... my System.Data.Entity.SqlServer only has SqlAzureExecutionStrategy and four other classes, but no DefaultSQLExecutionStrategy.
Thanks

It's here: https://entityframework.codeplex.com/SourceControl/latest#src/EntityFramework.SqlServer/DefaultSqlExecutionStrategy.cs. Note that this class is internal and is in the EntityFramework.SqlServer.dll.
EDIT
The article has been updated and it now says that this type is internal.

Related

IMemberIdentifier missing from TypeLite.TsModels namespace

So I've been using TypeLite 1.0.1 with good results until I upgraded to the latest version (1.1.0). It seems the IMemberIdentifier interface is gone, which broke this part of my T4 script:
ts.WithFormatter((TypeLite.TsModels.IMemberIdentifier identifier) =>
Char.ToLower(identifier.Name[0]) + identifier.Name.Substring(1));
I was using this to camel case all my properties in the TypeScript interfaces I'm generating. I can't seem to find a workaround for it and the TypeLite site documentation still uses the above code in their example. I had the same problem with version 1.0.2.
Any comments or ideas much appreciated. Thanks.
It seems that method of formatting members has changed.
To camel case all properties use:
ts.WithMemberFormatter((TypeLite.TsModels.TsProperty identifier) => Char.ToLower(identifier.Name[0]) + identifier.Name.Substring(1));

InsertHistoryOperation throws InvalidOperationException while no Database is existing

i have big Trouble using the EntityFramework 5.0. After updating EF in our Project from EF4.2 to EF5.0. The Framework throws InvalidOperationExceptions in the TypeInitializer of InsertHistoryOperation during initializing of the database. (In the InnerException it says: "The List does not contain any element").
I tried using DropCreateAlwaysInitializer as well as DropWhenModelChanges. We don't need the Migration Feature (Sure, would be nice to have, but not recommend). Is there a way to disable the Migration Feature so the exception is not thrown. Or can somebody give me a hint what i did wrong?
The Model is very complex, so i think its not very useful to post it here.
best regards,
Chris
I tried with .Net4.0 and .Net4.5
Ok, i got it.
The Problem is that the EntityFramework since V5.0 is not able to work correctly if you merge it into (e.g. a Datalayer Assembly) or use it from a merged assembly. (ILMerge).

What happened to the Rx Switch() operator?

I am working my way through the Hands-On-Labs for reactive extensions (Rx HOL .NET.pdf) which I downloaded from the data developer center (here) a few days ago.
I added these references to my project, using NuGet:
System.Reactive 1.0.10621.0
System.Reactive.Windows.Forms 1.0.10621.0
I'm almost done with the labs, but I've hit a snag trying to implement the .Switch() example, Visual Studio can't locate the extension method:
'System.IObservable'
does not contain a definition for
'Switch' and no extension method
'Switch' accepting a first argument of
type
'System.IObservable'
could be found (are you missing a
using directive or an assembly
reference?)
Now I know this Hands On Labs document is out of date, because certain things have been renamed (FromEvent became FromEventPattern) and certain things were removed (RemoveTimeStamp) and this document does not reflect that. For the life of me I cannot guess what they renamed Switch to be, or figure out what assembly they might have moved it to, or find a comprehensive list of release notes that indicate it was removed.
Anyone know where I can find Switch and what it's current name is?
The Switch extension method doesn't extend IObservable<T> - it extends IObservable<IObservable<T>>. The full signature is:
IObservable<TSource> Switch<TSource>(this IObservable<IObservable<TSource>> sources)
Try typing Observable.Empty<IObservable<object>>(). and see if Switch appears then.
If not, check your using namespace declarations.

Changing the core data model versionIdentifier

I'm trying to debug an issue with my mapping model not being used by my migration, and so I printed out the sourceModel and destinationModel's versionIdentifiers, but both were blank.
http://developer.apple.com/library/ios/#documentation/cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectModel_Class/Reference/Reference.html%23//apple_ref/occ/instm/NSManagedObjectModel/versionIdentifiers
This link says to set them in the model inspector but I can't find that on xcode 3 or 4... or at least there is no versionIdentifier or similar in anywhere I can find for the data model itself.
Does anyone know where I find that?
Take a look at this posting - and, in particular, my answer ;) : Core Data lightweight migration: Can't find or automatically infer mapping model for migration
I did not find versionIdentifiers to be as helpful in debugging as the 'metadata' for the various entities - as I outlined here: NSManagedObjectModel versionIdentifiers
Hope this helps.

EF4 Code only ctp5: how set connectionstring devart oracle?

hi i have devart oracle provider 6(BETA), and want use code only ctp5...how i can set connectionstring for oracle?i started now with Code only and i need use oracle, anyone can help me?
You can find example and tutorial about Code-First usage by the following link - http://www.devart.com/blogs/dotconnect/index.php/entity-framework-code-first-support-for-oracle-mysql-postgresql-and-sqlite.html
OracleConnection you have to add refference: Devart.Oracle.Data i think.
it's very simple, if you do have any questions i use it too and i write code only applications.
OracleConnection(ConfigurationManager.ConnectionStrings["OracleConnection"].ConnectionString)
I am doing it like so.
using Devart.Data.Oracle;