Questions tagged [entityconnection]

Contains a reference to a conceptual model and a data source connection. This class cannot be inherited.

10 questions
7
votes
2 answers

Managing EntityConnection lifetime

There have been many question on managing EntityContext lifetime, e.g. Instantiating a context in LINQ to Entities I've come to the conclusion that the entity context should be considered a unit-of-work and therefore not reused. Great. But while…
kervin
  • 11,672
  • 5
  • 42
  • 59
3
votes
1 answer

Why Doesn't The EntityConnection Object Contain the Login Password?

I've got an app that uses EF CTP5. In this particular situation, i need to degrade to some classic ADO.NET (in order to read multiple result sets in a stored procedure, which EF does not support). As such, im trying to use the existing connection…
3
votes
1 answer

Entity Framework 6 Database First - How to share connection and transaction with ADO

Is it possible to share one connection (and transaction as well) between operations made in EF6 DB First approach and some ADO operations? As I read here: https://msdn.microsoft.com/en-us/data/dn456843.aspx#existing it is possible to share…
1
vote
1 answer

Entity-Framework EntityConnection MetaData Problem

We are trying to build an EntityConnection dynamically so that different users are connecting to differnet databases determined at run-time. In order to do this we are testing the code found here:…
Gatmando
  • 2,179
  • 3
  • 29
  • 56
1
vote
1 answer

SqlEntityConnection configured with a local schema file

I want to use the SqlEntityConnection type provider in f# to query and update a db. It works well when I use it with the connection string pointing to a live SQL Server DataBase. type EntityConnection = SqlEntityConnection<"Data…
pierroz
  • 7,653
  • 9
  • 48
  • 60
1
vote
1 answer

Restrict SqlEntityConnection Type Provider to only certain tables

I am writing a utility for myself that needs to be able to access a pair of tables in a SQL database. I used the SqlEntityConnection Type Provider and was rewarded with the data I needed from the table as easy to use entities. One thing I noticed…
ChargerIIC
  • 1,620
  • 1
  • 33
  • 47
1
vote
1 answer

Renew Entity Framework ObjectContext connection after changing

Working on EF4-based project. In my app I change named connection string, used by ObjectContext, and save it back to App.config. But ObjectContext saves it's connection and does not mind about changes. Trying to reinit it with manually created…
oxfn
  • 6,590
  • 2
  • 26
  • 34
0
votes
2 answers

How can I create a MetadataWorkspace using metadata loading delegates?

I followed this example Changing schema name on runtime - Entity Framework where I can create a new EntityConnection from a MetaDataWorkspace that I then use to construct a DbContext with a different schema, but I get compiler warnings saying that…
Dave
  • 1,822
  • 2
  • 27
  • 36
0
votes
1 answer

Entity Framework and connection string max Timeouts

I'm using a DbContext and want set CommandTimeout = 1 week. What is max timeout value for CommandTimeout? ((IObjectContextAdapter)this.context).ObjectContext.CommandTimeout = ?max?; In connection string I also need set max time out value. What…
zrabzdn
  • 995
  • 2
  • 14
  • 33
0
votes
1 answer

What Provider DLL does the EntityConnection use to create its StoreConnection

I setup an object context like this: public MyObjectContext(....) : this(contextName, new EntityConnection(connectionString)) The connection string is a connection string to an Oracle database. I use DevArt as a provider btw. Everything works fine.…