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

  • Home
  • SEARCH
  • 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 3430974
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T07:16:09+00:00 2026-05-18T07:16:09+00:00

I wanted to pick your minds… So I’ve got this View that allows for

  • 0

I wanted to pick your minds…

So I’ve got this View that allows for a small register… and a stored procedure.

I’ve been seeing these pseudo “repositories” when making calls… to me, it just seems like an extra hole that needs to be drilled in order to make the call. This bring up three qeustions:

1) what’s the point of pseudo repositories?

2) what’s the best place to make my stored procedure call: within the views controller function or referencing some other function?

3) how do I recieve the stored procedues result (i.e. success of failure)?

Here’s my call:

long? tmp = 1234;
LinqToPartyDataContext lq = new LinqToPartyDataContext();
lq.spCreatePersonaParty(ref tmp,
    model.FirstName,
    null,
    null,
    null,
    null,
    null,
    null,
    null,
    model.EmailAddress,
    null,
    null,
    null,
    null,
    null,
    model.ZipCode,
    null,
    null);

How do I get the result?

  • 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-18T07:16:10+00:00Added an answer on May 18, 2026 at 7:16 am

    1) what’s the point of pseudo repositories?

    To hide the underlying implementation detail from your UI. E.g:

    IFooRepository repo;
    var foo = repo.FindSingle(1);
    

    All the UI knows is that it is calling something that will retrieve what is wants. Why should it care about the actual details? All it cares about is getting the results it wants.

    Your actual implementation could be a L2SQL repository, Entity Framework, or even a classic ADO.NET implementation.

    2) what’s the best place to make my stored procedure call: within the views controller function or referencing some other function?

    Definetely not from the UI.

    Create an interface which exposes the parameters to the stored procedure, which the Controller can call into:

    var result = repository.FindSomethingSpecific(param1, param2);
    return View(result);
    

    3) how do I recieve the stored procedues result (i.e. success of failure)?

    This really depends on your persistence layer (EF/L2SQL/classic ADO).

    If your using EF, you can return the result of the SPROC into a POCO, which the UI can access via model binding.

    If your using L2SQL (no POCO support), you’ll have to manually project into a POCO (left to right copy), and bind to that.

    If your using classic ADO.NET, your have to manually traverse the result set and project into a POCO.

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

Sidebar

Related Questions

I wanted some of those spiffy rounded corners for a web project that I'm
I wanted to generate one fix view using interface builder, but the size of
I wanted to do something like this: <asp:Label ID=lblMyLabel onclick=lblMyLabel_Click runat=server>My Label</asp:Label> I know
First off, let me say that this is not homework (I am an A-Level
Wanted to create a fun app with photo. This is the scenario: I have
I wanted to know if anyone else has experienced this 'glitch' between browsers with
Wanted to convert <br/> <br/> <br/> <br/> <br/> into <br/>
Wanted to get some consensus around a UI feature I'm working on right now.
I wanted to show the users Name Address (see www.ipchicken.com ), but the only
I wanted to emulate a popular flash game, Chrontron, in C++ and needed some

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.