Questions tagged [entitycollection]

41 questions
0
votes
2 answers

LINQ to Entities: query example

Can someone show me how to get a user's usergroup relation in LINQ to Entities from this model? I need get a list to be able to loop it after ward in such way: foreach (QASModel.UserGroup usergroup in ...) Bonus points if you can provide some…
user706058
  • 415
  • 3
  • 11
  • 23
0
votes
2 answers

Remove duplicates from EntityCollection

I have an EntityCollection which contains members coming from different Marketing Lists. Because a person can exist in various MarketingLists my EntityCollection can contain the same person multiple times. To have this data initially grouped I do…
0
votes
1 answer

Remove value from entitycollection

I need to remove the Entity from the entitycollection based on some values. EntityCollection users = new EntityCollection(); List UsersList = new List(); UsersList.add("test1") UsersList.add("test2") UsersList.add("test3") foreach…
User
  • 1,644
  • 10
  • 40
  • 64
0
votes
1 answer

Insert Entity into EntityCollection w/ RIA

I've got a one-to-many relationship set up. (Ex. A Person with many Phone Numbers). In my get query i have this.ObjectContext.Person.Include("PhoneNumbers") and the in generated MetaData including public EntityCollection PhoneNumbers{…
Mike
  • 1,349
  • 1
  • 17
  • 23
0
votes
2 answers

How to set Datagrid itemsource to EntityCollection in Silverlight?

I'm working on a Silverlight project for CRM 2011. I have an EntityCollection resulting from a QueryExpression and i need to display these entities in a datagrid. I have checked several solutions online, but none is working. I would appreciate your…
0
votes
1 answer

EntityCollection to List through Reflection

Im using reflection to get data dynamically (Entity types are defined at runtime). Im currently returning a single object whenever my currentObject hasn't 1:N relationships (via "First" generic method reflection implementation), but I need to get…
Rafael A. M. S.
  • 637
  • 1
  • 6
  • 27
0
votes
1 answer

Need help to XMLSerialize Object Content

I am using XMLSerialization to pass data from a client based Win7 application to our server (Server 2008 R2) via a Pipe communication process. I have been brought into this project to finish the previous developer's efforts who abandoned it ...…
David
  • 43
  • 1
  • 1
  • 4
0
votes
1 answer

PagedDataSource not getting datasource

I cannot get a PagedDataSource to use an IEnumerated collection of EntityCollection objects as a datasource. The PagedDataSource accepts the collection as a datasource but then I can't use basic properties like CurrentPageIndex and IsLastPage…
Matt Foxx Duncan
  • 2,074
  • 3
  • 23
  • 38
0
votes
1 answer

Hibernate, (netbeans 7.1.2, maven) unable to use ElementCollection attribute

A my SQL database has an "Item" table. Each "item" can have many alternate labels. These are stored in another table called "ItemAltLabel". The foreign key is “ItemID”. I am trying to represent this in java as an entity which has a set of string…
zod
  • 2,688
  • 5
  • 27
  • 49
0
votes
1 answer

Compare EntityCollection in a LinqToEntity query

Is it possible to compare two EntityCollection in a Linq query? I tried this way: from t in _bdd.Table where (idList).All(id=> t.ids.Contains(id)) select i).FirstOrDefault() where idList and ids are both…
Anthony Bobenrieth
  • 2,758
  • 1
  • 26
  • 38
-1
votes
1 answer

EntityCollection as parameter in a method

I am trying to write a code where EntityCollection is the parameter of the method but I don't know what is the proper coding is there someone who can help me about this? here is the sample code //by the way, this is a wrong coding, I am just…
portgas d ace
  • 309
  • 3
  • 9
  • 21
1 2
3