Questions tagged [entityset]

54 questions
40
votes
3 answers

EntitySet - is there a sane reason that IList.Add doesn't set assigned?

There are 3 ways of adding items to most lists... via a direct public API method, typically Add(SomeType) via the generic IList.Add(T) interface via the non-generic IList.Add(object) interface method and you normally expect them to behave more…
Marc Gravell
  • 1,026,079
  • 266
  • 2,566
  • 2,900
19
votes
1 answer

RIA Services EntitySet does not support 'Edit' operation

Making my first steps in RIA Services (VS2010Beta2) and i encountered this problem: created an EF Model (no POCOs), generic repository on top of it and a RIA Service(hosted in an ASP.NET MVC application) and tried to get data from within the ASP.NET…
Savvas Sopiadis
  • 8,213
  • 10
  • 34
  • 53
14
votes
2 answers

Generic List to EntitySet Conversion

How do I Convert a System.Collections.Generic.List to a System.Data.Linq.EntitySet ?
Johnny
  • 1,555
  • 3
  • 14
  • 23
10
votes
7 answers

LINQ-to-SQL + One-to-Many + DataBinding deleting

I use LINQ-to-SQL to load data from a database that has two tables in a one-to-many relationship (one Recipe has many Ingredients). I load a Recipe and LINQ retrieves Ingredient objects into an EntitySet that is binded into a ListBox. If I want to…
Jurij
  • 179
  • 1
  • 3
  • 9
5
votes
4 answers

ASP.NET MVC/LINQ: What's the proper way to iterate through a Linq.EntitySet in a View?

OK so I have a strongly-typed Customer "Details" view that takes a Customer object Model. I am using LINQ to SQL and every Customer can have multiple (parking) Spaces. This is a FK relationship in the database so my LINQ-generated Customer model has…
Jeff Camera
  • 5,324
  • 5
  • 44
  • 59
5
votes
3 answers

ASP.NET MVC Model Binding Related Entities on Same Page

This problem has been driving me crazy for several hours now... In my domain, I have 2 entities that are related to each other Sku and Item. Each sku can have many items. public class Sku { private readonly EntitySet items; public…
3
votes
1 answer

Using multiple parent IDs for cutoff times in deep feature synthesis

My data looks like: People <-- Events <--Activities. The parent is People, of which the only variable is the person_id. Events and Activities both have a time index, along with event_id and activity_id, both which have a few features. Members of the…
Gabe
  • 89
  • 5
3
votes
3 answers

HowTo update/modify LINQ EntitySet?

In my LINQ to SQL generated classes I have some classes containing EntitySets. Everything looks great until I need to modify the EntitySet (add, delete some relationships). I thought that it was going to work doing something like: User.Actions =…
Carlos Castillo
  • 533
  • 2
  • 6
  • 12
3
votes
0 answers

Odata4j Not Found Exception

I have created an OData producer with Tomcat by following this tutorial. However, when I go to the specified url at the tomcat server, I get the following error: My pom.xml is:
AllieCat
  • 3,890
  • 10
  • 31
  • 45
3
votes
3 answers

What is the difference between an entity set and an entity? Is this definition standard?

I'm wondering if my textbook has a non-standard definition. I've red this question and it is not a duplicate. The book defines entities and entity sets as An entity is an abstract object of some sort, and a collection of similar entities forms…
Celeritas
  • 14,489
  • 36
  • 113
  • 194
2
votes
1 answer

Unable to serialize the session state, which is related to System.Data.Linq. EntitySet

Recently I am playing with the Windows Server 2008, and would like to make some configuration for my web application. I have changed the Session State for my application to "State Server" so it can make use of more work process (Now it is set to…
Hei
  • 513
  • 3
  • 13
  • 29
2
votes
1 answer

How to correctly implement $expand query in SEGW?

I was trying to implement the $expand query option for an Odata Service in SEGW... I basically have UsersSet and ProductsSet... and the relation is m:n between users and products (Users can have multiple products, and products can belong to multiple…
MMMM
  • 3,320
  • 8
  • 43
  • 80