Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. trouble to get data from stored procedure with linq

trouble to get data from stored procedure with linq

Scheduled Pinned Locked Moved LINQ
helpcsharpdatabaselinqquestion
2 Posts 2 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sanjumake23
    wrote on last edited by
    #1

    hi i m getting trouble if i use exec statment in stored procedure and when i m trying to fetch data with that stored procedure with linq then it error. if i use exec command then it will not dispaly list() like below

    LS25DataContext mydb = new LS25DataContext();

    list IResult = mydb.usp_search(int custid,int iprice).ToList()

    ; can i use exec command in stored procedure when use linq? please help me thanks in Advance.

    L 1 Reply Last reply
    0
    • S sanjumake23

      hi i m getting trouble if i use exec statment in stored procedure and when i m trying to fetch data with that stored procedure with linq then it error. if i use exec command then it will not dispaly list() like below

      LS25DataContext mydb = new LS25DataContext();

      list IResult = mydb.usp_search(int custid,int iprice).ToList()

      ; can i use exec command in stored procedure when use linq? please help me thanks in Advance.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      I Googled and found many answers. Hope this help!

      Peace ON In Simple Sense... Start Shining Stories We Live...

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups