Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 600035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:33:47+00:00 2026-05-13T16:33:47+00:00

Is it possible to pass a collection of objects to a RIA Data Service

  • 0

Is it possible to pass a collection of objects to a RIA Data Service query? I have no issues sending an Entity, an Int or an array of primitive types, but as soon as i declare a method like this

public void GetLessonsConflicts(Lesson[] lessons)
{
}

i get a compilation error

” Operation named
‘GetLessonsConflicts’ does not conform
to the required signature. Parameter
types must be an entity type or one of
the predefined serializable
types”

I am just trying to do some validation on the server side before i save the data. I’ve tried List, IEnumerable etc.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T16:33:47+00:00Added an answer on May 13, 2026 at 4:33 pm

    I think the problem is actually the lack of a return value. As I understand it, you can identify DomainOperations by convention or by attribute. You’re not showing an attribute so RIA will be trying to match it by convention.

    For example, by convention, an insert method must:

    • have Insert, Add or Create as the method name prefix, e.g. InsertEmployee
    • match the signature public void name(Entity e);

    a query method must:

    • be public
    • return IEnumerable, IQueryable or T (where T is an entity).

    a custom domain operation must

    • be public
    • return void
    • have an Entity as the first parameter.

    EDIT: See Rami A’s comment below. I believe this was true at the time but I’m not currently working with this technology so I’m not current enough on it to update this answer other than to note that it may be incorrect.

    Or you can use Attributes such as [Insert],[Delete],[Update],[Query],[Custom]. From my docs, all the attributes do is remove the requirement for the name convention – it’s not clear from them, to me, what the [Query] and [Custom] attributes achieve.

    As well as DomainOperations, you can define ServiceOperations (using the [ServiceOperation] attribute) and InvokeOperations.

    This article might help (although I think it’s a bit out of date).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a collection of custom entity objects one property of which is an
Is it possible to pass objects (serializable classes or other ways) to a Silverlight
Is it possible to pass parts of a linq Query into a function? I
I have a worker class that does stuff with a collection of objects. I
I've got a C# WCF service that passes a collection of instantiated .Net objects
In MVC, is it possible to pass an array of string (List<string>) from C#
I have a Backbone.js Collection and I have an array of model IDs that
Is it possible to pass generic objects (by generic I mean any with DataContract
Possible Duplicate: Pass a PHP string to a Javascript variable (and escape newlines) I
Possible Duplicate: pass by reference not working I was going through some of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.