No announcements
Found 2933992 threads
-
0 Votes
How to get the DBContext Class
Hai, I have installed the new version of EF ver4.1 in my system .. Even though i installed that i didn't get the DBContext ...Answered | 1 Replies | 2033 Views | Created by V G S Naidu - Saturday, April 21, 2012 6:55 AM | Last reply by V G S Naidu - Saturday, April 21, 2012 7:26 AM -
0 Votes
How to get the DbContext of an Entity
Hello, If I understand correctly, you want to get the dbcontext object from an entity object. Unfortunately, for ...Answered | 1 Replies | 846 Views | Created by Amin-Mashayekhi - Tuesday, January 28, 2014 12:28 PM | Last reply by Fred Bao - Wednesday, January 29, 2014 4:20 AM -
0 Votes
How to iterate tables in DBContext?
Hi, i am trying to serialize all the tables in DBContext, can anybody advise me how to achieve this? For say: i have my ...Answered | 1 Replies | 3001 Views | Created by Eric Chen China - Wednesday, December 7, 2011 8:02 AM | Last reply by Alan_chen - Tuesday, December 13, 2011 2:02 AM -
0 Votes
DBContext.CommandTimeout does not compile in .net 4.5 Entity framework 5
IObjectContextAdapter interface. There is a blog post that describes how to use IObjectContextAdapter to get access to ...Answered | 2 Replies | 3865 Views | Created by Arne MN - Tuesday, September 11, 2012 5:51 PM | Last reply by Arne MN - Tuesday, September 11, 2012 8:01 PM -
0 Votes
Using MergeOption with DbContext/DbSet
suggestions on how this could be done? I'm fine with either getting a hold of an and underlying ObjectQuery (if there is one) from my DbContext/DbSets or any suggestions ...Proposed | 1 Replies | 10423 Views | Created by Tomas Elison - Wednesday, September 15, 2010 2:08 PM | Last reply by Rowan Miller - Saturday, September 18, 2010 12:01 AM -
0 Votes
Accessing the ObjectContext object from DBContext
intellisense after I put in the following: "DbContext.Objectcontext." I need to access properties and methods from my ...Answered | 1 Replies | 2196 Views | Created by Bill_Yeager - Saturday, November 26, 2011 7:13 PM | Last reply by Allen_MSDN - Monday, November 28, 2011 6:36 AM -
0 Votes
How to get dbcontext and dbset class
Hi all, Hope doing well, could you please help me how to get dbcontext and dbset class. I have already used using ...Answered | 4 Replies | 3061 Views | Created by vicky Bangalore - Friday, February 17, 2012 6:50 AM | Last reply by Allen_MSDN - Thursday, February 23, 2012 1:03 AM -
0 Votes
dbContext vs ObjectContext issue
Hi Harby, You could modify the T4 template to include a partial method which will allow you to implement the method in the partial ...Answered | 1 Replies | 3103 Views | Created by MA Harby - Thursday, March 29, 2012 4:29 PM | Last reply by Tyler_A - Friday, March 30, 2012 12:37 AM -
0 Votes
Mock up dbcontext and dbset, what is the best way?
;Trusted_Connection=True;"); } public DbSet<Blog> Blogs { get; set; } public DbSet<Post> Posts {get; set; ...Answered | 1 Replies | 2003 Views | Created by HZ.USA - Monday, June 13, 2016 12:22 PM | Last reply by Jack Zhai-MSFT - Wednesday, June 15, 2016 2:29 AM -
1 Votes
Problem with cache or multiples instances of dbcontext
classes (again, one for each entity) I'm connecting the classes using unity, so the contoller uses unity to get the repository, and ...Answered | 2 Replies | 8017 Views | Created by Luiz Bicalho - Monday, March 21, 2011 10:04 PM | Last reply by Luiz Bicalho - Thursday, March 24, 2011 5:24 PM -
0 Votes
How to Upgrade to DBContext from ObjectContext and what to do with default constructors.
have few classes that define a default constructor for the class to populate default values for properties. ...Answered | 1 Replies | 700 Views | Created by Eric Weiss - Friday, April 11, 2014 4:46 PM | Last reply by JayChase - Saturday, April 12, 2014 1:26 AM -
0 Votes
how to manage Dbcontext in MVVM when loading usercontrols asnyc
what do you mean by disconnected? Do you dispose the dbcontext after it is bound to the view? "Debugging is twice as hard as writing the code ...Answered | 4 Replies | 913 Views | Created by emil_tr - Wednesday, August 19, 2015 8:31 AM | Last reply by Magnus (MM8) - Wednesday, August 19, 2015 4:46 PM -
0 Votes
Using NotifyPropertyChanged in custom properties of DBContext
I am using a database first generated model in EF 4.1 and using the DBContext Generator to generate code. I need to add a custom property to one of ...Answered | 1 Replies | 2518 Views | Created by MikeEmerson - Monday, March 19, 2012 12:06 AM | Last reply by Allen Li - Coding4Fun - Tuesday, March 20, 2012 4:11 AM -
0 Votes
Accessing DbContext within Prism Unity
>It was working before I changed the DbContext to static. You should not modify the MyDbContext class itself. You are just creating ...Answered | 4 Replies | 1101 Views | Created by Harpagornis - Thursday, November 5, 2015 7:28 PM | Last reply by Harpagornis - Friday, November 6, 2015 3:51 PM -
2 Votes
MVVM: Sharing DbContext between ViewModels
DbContext.SaveChanges, does that automatically get published to all the viewmodels, or do I need to add a publish event in the static ...Answered | 6 Replies | 1314 Views | Created by Harpagornis - Friday, December 11, 2015 6:04 AM | Last reply by Harpagornis - Friday, December 11, 2015 8:03 PM -
0 Votes
Can't access to action Web API -Route attribute inheritance - ASP.NET Core Controllers
[] { })] public Task<IActionResult> Get(string parametre); } My problem here is i can't execute the action ...Unanswered | 1 Replies | 494 Views | Created by Thabetidris - Sunday, October 18, 2020 3:49 PM | Last reply by DA924x - Sunday, October 18, 2020 5:52 PM -
0 Votes
EF4 + CTP5 + CF: DbContext inheritance?
Hi, I don't think there's an issue with DbContext in CTP5, I think you could look for another reason. Further, you can read this about how to create ...Proposed | 1 Replies | 4537 Views | Created by René Ittershagen - Tuesday, March 15, 2011 2:05 PM | Last reply by L.J Lincoln - Friday, March 18, 2011 7:29 AM -
0 Votes
server side paging and OrderBy with DbContext
Get or Request Code Sample from Microsoft Please remember to mark the replies as answers if they help and unmark them if they provide no ...Answered | 1 Replies | 3598 Views | Created by sheikho - Thursday, March 1, 2012 4:36 PM | Last reply by Alan_chen - Monday, March 5, 2012 6:46 AM -
0 Votes
why I can't query/save data in this way
return null; Please let me know how to fix this issue. Thanks! Please remember to mark ... -
0 Votes
Many to many self referencing table with payload
>Do you know how can I solve this problem? Do I need two navigation properties in User class? I am afraid that you need to also add the ...Answered | 1 Replies | 1176 Views | Created by VansFannel - Friday, September 19, 2014 10:55 AM | Last reply by Fred Bao - Monday, September 22, 2014 2:27 AM - Items 1 to 20 of 2933992 Next ›
No announcements