No announcements
Found 3719077 threads
-
4 Votes
The context cannot be used while the model is being created.
Interestingly, I was using Fluent NHibernate before and I was getting errors that were relating to a specific line of code when users are being validated against their roles.Answered | 3 Replies | 33724 Views | Created by KallDrexx - Monday, May 23, 2011 11:57 PM | Last reply by Rowan Miller - Wednesday, June 1, 2011 5:53 PM -
0 Votes
EntityFramework 4.1 SQL Compact Error "The context cannot be used while the model is being created."
I am using Database First approach using EF and the connection string was generated for me as follows: <add ...Answered | 4 Replies | 8877 Views | Created by uMelf - Wednesday, April 13, 2011 9:04 AM | Last reply by AMythN04 - Tuesday, May 31, 2011 8:06 PM -
0 Votes
MVC to oracle with DbSet throws exception "The context cannot be used while the model is being created"
I have solved this error by using ADO.net Entity Data Model.Answered | 4 Replies | 2231 Views | Created by _ShiVangi_ - Wednesday, May 18, 2016 1:05 PM | Last reply by _ShiVangi_ - Thursday, May 26, 2016 5:04 AM -
0 Votes
EF Exception:The context cannot be used while the model is being created
So, the dbcontext is creating the database and inserting data to table at the same time.Unanswered | 3 Replies | 3241 Views | Created by Anonymous - Wednesday, March 8, 2017 2:12 AM | Last reply by Anonymous - Thursday, March 9, 2017 2:21 AM -
3 Votes
How to use EF when the model is evolving
Is there any reccomended way to use EF when the model is evolving and changing?Answered | 6 Replies | 3242 Views | Created by Dean Blakely - Tuesday, September 14, 2010 12:11 AM | Last reply by Michael Sun [MSFT] - Monday, September 20, 2010 1:18 AM -
0 Votes
Use EF with DDD principles is possible ???
I think I didn't understand how to proceed with EF/DDD : I create the Domain model with EF Code First and ...Answered | 10 Replies | 788 Views | Created by AngeloNew - Friday, April 5, 2019 4:53 PM | Last reply by AngeloNew - Friday, April 12, 2019 4:07 PM -
1 Votes
Providing connection string to an EF 5.0 model
Hi chuck02323; It appears that in VS 2012 when using the designer they are setting "Code Generation Strategy" to None and are ...Answered | 3 Replies | 2426 Views | Created by chuck02323 - Thursday, August 30, 2012 8:36 PM | Last reply by Fernando Soto - MCSD - Friday, August 31, 2012 3:06 PM -
0 Votes
Workflow - the context cannot be used while the model is being created
http://stackoverflow.com/questions/9750115/the-context-cannot-be-used-while-the-model-is-being-created ...Answered | 2 Replies | 65 Views | Created by Anonymous - Tuesday, March 18, 2014 6:39 AM | Last reply by Anonymous - Thursday, March 20, 2014 10:16 AM -
1 Votes
Migrating EF model-first to Azure
No warning that, hey, MVC 4 has been out for a while now, but if you decide to use it, you should not install the Universal Providers.Answered | 10 Replies | 9735 Views | Created by Bob.at.SBS - Saturday, August 18, 2012 12:41 AM | Last reply by Bob.at.SBS - Sunday, August 26, 2012 5:28 PM -
0 Votes
Context is not always being created
Would you mind letting us know how is the problem now?Answered | 2 Replies | 2940 Views | Created by Jack David - Wednesday, July 7, 2010 8:03 PM | Last reply by Michael Sun [MSFT] - Monday, July 12, 2010 8:08 AM -
0 Votes
EF, Web API No Keys
>1. when I go in to my edmx and try and build out some of the relationships i cannot get it to work. i can create the keys here but when i do the association option and try and ...Answered | 2 Replies | 700 Views | Created by olson2334 - Friday, August 12, 2016 7:52 PM | Last reply by Zhanglong Wu - Monday, August 15, 2016 4:57 AM -
2 Votes
Unable to place code first and model first contexts in the same assembly
It seems that Database first generated classes can work fine and Code First POCO classes cannot be found by EF.Answered | 4 Replies | 6607 Views | Created by Vagif Abilov - Monday, May 2, 2011 11:55 AM | Last reply by Michael Sun [MSFT] - Wednesday, May 4, 2011 5:03 AM -
0 Votes
EF 4.1 Capabilities
Being a big fan of the EF I was hoping I could generate a model to represent the dynamic table, but it doesn't look that way.Answered | 3 Replies | 4011 Views | Created by Mark Coull - Sunday, March 20, 2011 11:14 PM | Last reply by Mark Coull - Tuesday, March 22, 2011 11:39 PM -
0 Votes
Using EF with WCF
The only issue is a searialization issue coming back from EF (see my WCF trace innerException msg below).Answered | 7 Replies | 3277 Views | Created by Bill_Yeager - Monday, September 5, 2011 4:41 PM | Last reply by r.burgundy_ - Tuesday, September 6, 2011 6:24 AM -
0 Votes
Why I cannot free memory in EF 4.1?
Hi Dmitriy; After leaving the using statement the context is disposed.Answered | 4 Replies | 2039 Views | Created by Dmitriy - Tuesday, January 24, 2012 8:21 PM | Last reply by Patrice Scribe - Wednesday, January 25, 2012 9:46 AM -
0 Votes
How EF handle dynamically created tables
That is correct - you'll need to either use the System.Data.Entity.Design APIs (or some equivalent) to reverse engineer new additions to the schema, or set up a static in-database ...Answered | 2 Replies | 3033 Views | Created by Derek Li - Tuesday, December 1, 2009 7:58 PM | Last reply by Derek Li - Wednesday, December 2, 2009 4:35 PM -
0 Votes
How to create an anonymous type from a linq query using two entities located on different models and different contexts?
ut.IdUtenteAsp join cult in ctx.Culture.ToList() on ut.IdCultura equals cult.IdCultura where (asp_ut.UserName == userName) ...Answered | 2 Replies | 3724 Views | Created by Federico Silberberg - Wednesday, November 25, 2009 11:42 PM | Last reply by Montanari F. _ - Friday, June 11, 2010 9:43 AM -
0 Votes
The context cannot be used while the model is being created
quot;)] public int UserTypID { get; set; } [Column("first_name")] public string FirstName { get; set; } [Column("last_name")] ...Answered | 3 Replies | 56 Views | Created by Anonymous - Saturday, May 27, 2017 5:56 PM | Last reply by Anonymous - Sunday, May 28, 2017 4:42 AM -
0 Votes
How heavy-weight is a EF-context?
An instance of the ObjectContext class encapsulates the following: a connection to the database; metadata that describes the model; and an ObjectStateManager object that ...Answered | 4 Replies | 4347 Views | Created by RüdiActivity - Tuesday, September 28, 2010 7:22 PM | Last reply by Julia Kornich - Thursday, September 30, 2010 3:03 PM -
0 Votes
Anyone using Entity Framework (EF) for data layer?
Infrastrucuture being able to manage the EF links.Answered | 6 Replies | 5697 Views | Created by pretzelb - Tuesday, August 30, 2011 12:20 AM | Last reply by darnold924 - Friday, October 28, 2011 11:28 PM - Items 1 to 20 of 3719077 Next ›
No announcements