Questions tagged [objectset]

24 questions
0
votes
1 answer

EF6 Add an ObjectSet based on an existing ObjectSet

I have an EF6 ObjectContext containing a largish number of ObjectSets. One EntityObject in particular has over a hundred properties, including some large text fields. I have several forms to work with, that work with different pieces of the…
Roger Willcocks
  • 1,649
  • 13
  • 27
0
votes
1 answer

Generic ObjectContext? objectContext.GetObjectSet?

Is there a way to get ObjectQuery for specfied generic type? Pseudo: public partial class MyObjectContext { public ObjectSet GetObjectSet() { return Helper.GetObjectSet(this); } }
Shimmy Weitzhandler
  • 101,809
  • 122
  • 424
  • 632
0
votes
2 answers

Django querying through sets

I'm new to Django and I'm stuck at querying through multiple sets. I have three models; class Project(models.Model): name = models.CharField(max_length = 100) class AppointmentGroup(models.Model): name = models.CharField(max_length = 100) #…
Sven van Zoelen
  • 6,989
  • 5
  • 37
  • 48
0
votes
1 answer

EF4 ObjectContext.Attach Question?

If I construct an object like say, Category, assign the values to the properties, one being the ID that is the same as a row in the database and pass it to the ObejctSet.Attach method and call the SaveChanges on the Context, will it update that row…
Sam
  • 15,336
  • 25
  • 85
  • 148
0
votes
1 answer

Working directly with EntitySet?

I'm trying to wrap my head around all the classes present in Entity Framework 4. The only one that I'm confused by (so far) is EntitySet. EntitySets are never mentioned anywhere in the generated C# code from my .edmx files, only in the XML files…
0
votes
0 answers

Filtering in EF Generic Repository but still returning ObjectSet

I have a generic Repository that returns an ObjectSet from the objectContext.CreateObjectSet method. Depending on T, I'd like to use something like : var objectSet = objectContext.CreateObjectSet(); if…
0
votes
1 answer

Is it possible to convert ObjectSet to DbSet in Entity Framework 6?

I am working on upgrading a WPF application from using .Net4/EF 4.4 to .Net4.5/EF 6.1. After the upgrade I will use DbContext (since there was no POCO-generator for ObjectContext). The application use a Repository/UnitOfWork-pattern to access…
GHauan
  • 189
  • 1
  • 13
0
votes
0 answers

How do I implement IEnumerable to enumerate an ObjectSet correctly?

My main goal is to override the DeleteObject method of ObjectSet. I'm using EntityFramework 6 with an ObjectContext that I migrated from EF 4.x. EDIT: I modified the T4 template that created the ObjectContext to associate all the ObjectSets on the…
Noel
  • 600
  • 16
  • 37
-5
votes
1 answer

How can I do this in java?

I must combine values in a set in this way: Input: {A,B,C,D} Result: {AB, ABC, AC, AD, ACD, ABD, ABCD, BC, BD, BCD, CD} How can I do this?
user3195053
  • 29
  • 1
  • 7
1
2