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 6794197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:11:33+00:00 2026-05-26T18:11:33+00:00

i written this sql query and my environment is using RIA, Object Context in

  • 0

i written this sql query and my environment is using RIA, Object Context in Domain Service Class to load data by default. but now i not sure how to retrieve and dump it into generic list structure of below

public class LectAllInfo
{
    public DateTime StartTime {get;set;}
    public DateTime EndTime {get;set;}
    public string Venue {get;set;}
    public string Purpose {get;set;}
}

Generic List Content

May i know how should i write the code to withdraw the data from object context with RIA and dump into list ? Thank you for reply

  • 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-26T18:11:34+00:00Added an answer on May 26, 2026 at 6:11 pm

    You should use a stored procedure mapped to a ‘function’.

    • Create a stored procedure which returns your data.
    • Update your EF model (Update from database...)
      • Add the stored procedure to the model
    • Right click on the EF designer and choose Add function import... (it’s one of the top options), which will open the function import dialog.
    • Enter the name that you want the function to be called, and the return type. The easiest way is to click the button at the very bottom (‘show columns’ or something) and then choose Create new complex type. A class will be created that contains a result of the stored procedure.

    Now you’ll have a function on your ObjextContext, named according to the choices you made. You call it very simply:

    var result = objectContext.MyStoredProcFunction(a, b, c);
    return result;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Initially I had written this query using LINQ-to-SQL var result = from w in
I want this SQL query to be written in rails controller using find: select
I written a query in my sql like this: select * from table_name order
I've written this SQL query in MS Access: SELECT * FROM Students WHERE name
I have written this query in sql server 2005 but it still will show
I have a t-sql query written with this sample help . SELECT t.gName AS
I have written SQL query which brings data from multiple tables and displays the
I have written this query, $sql = SELECT `candidates`.`candidate_id`, `candidates`.`first_name`, `candidates`.`surname`, `candidates`.`DOB`, `candidates`.`gender`, DATE_FORMAT(NOW(),
I've written this very simple function to replace a file extension using LINQ in
I have written this clone method for when the parent of the Employee class

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.